aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-21 16:45:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-21 16:45:03 +0900
commit54b9b80b84760717aadb8bf67f638785ed895a58 (patch)
treea3a2f91eb2d40f9787fa6773a26f06dddf027714 /tool
parent5e24a4e3920da5ff71f18f4dfe0928b2221285b4 (diff)
downloadruby-54b9b80b84760717aadb8bf67f638785ed895a58.tar.gz
[Bug #19967] Delete real path
Diffstat (limited to 'tool')
-rw-r--r--tool/fake.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/fake.rb b/tool/fake.rb
index 195ae0a5a0..87c8fb7cfc 100644
--- a/tool/fake.rb
+++ b/tool/fake.rb
@@ -13,7 +13,8 @@ end
env or next
e = ENV[env] or next
e = e.split(File::PATH_SEPARATOR)
- e.delete(File.expand_path(path, builddir)) or next
+ path = File.realpath(path, builddir)
+ e.delete(path) or next
ENV[env] = (e.join(File::PATH_SEPARATOR) unless e.empty?)
end