summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index f14475fcab..4696b332af 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)