Skip to content

Commit 54b9b80

Browse files
committed
[Bug #19967] Delete real path
1 parent 5e24a4e commit 54b9b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/fake.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class File
1313
env or next
1414
e = ENV[env] or next
1515
e = e.split(File::PATH_SEPARATOR)
16-
e.delete(File.expand_path(path, builddir)) or next
16+
path = File.realpath(path, builddir)
17+
e.delete(path) or next
1718
ENV[env] = (e.join(File::PATH_SEPARATOR) unless e.empty?)
1819
end
1920

0 commit comments

Comments
 (0)