From c42e4a38e9839fe3380566727304f3fd75a6506a Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 8 Dec 2023 16:39:41 -0800 Subject: [PATCH] Fix tool/ln_sr.rb passing 2 arguments to String#chomp! I'm guessing String#sub! was desired here. --- tool/ln_sr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 << "/"