diff options
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r-- | ext/extmk.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 2342b0ce37..f5764168a2 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -38,7 +38,8 @@ def sysquote(x) end def relative_from(path, base) - if File.expand_path(path) == File.expand_path(path, base) + dir = File.join(path, "") + if File.expand_path(dir) == File.expand_path(dir, base) path else File.join(base, path) |