diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 8b495ba..d865640 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -1724,11 +1724,14 @@ sub make_link_absolute { my $link; if ($target =~ m|^/|) { - $target; # Target is absolute, just return it - } else { - $link =cleanup_link(dirname($file) . "/$target"); + return $target; # Target is absolute, just return it + } else { ## and use return --freesource + + $link = cleanup_link(dirname($file) . "/$target"); + } + $link =~ s,^\.,,; # When there is one file dir eq . --freesource return $link;