diff options
-rwxr-xr-x | tool/ln_sr.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ln_sr.rb b/tool/ln_sr.rb index 2aa8391e17..e1b5b6f76b 100755 --- a/tool/ln_sr.rb +++ b/tool/ln_sr.rb @@ -96,7 +96,7 @@ unless respond_to?(:ln_sr) while c = comp.shift if c == ".." and clean.last != ".." and !(fu_have_symlink? && File.symlink?(path)) clean.pop - path.chomp!(%r((?<=\A|/)[^/]+/\z), "") + path.sub!(%r((?<=\A|/)[^/]+/\z), "") else clean << c path << c << "/" |