aboutsummaryrefslogtreecommitdiffstats
path: root/tool/fake.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/fake.rb')
-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