diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-10-21 16:45:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-10-21 16:45:03 +0900 |
commit | 54b9b80b84760717aadb8bf67f638785ed895a58 (patch) | |
tree | a3a2f91eb2d40f9787fa6773a26f06dddf027714 | |
parent | 5e24a4e3920da5ff71f18f4dfe0928b2221285b4 (diff) |
[Bug #19967] Delete real path
-rw-r--r-- | tool/fake.rb | 3 |
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 |