summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-17 14:58:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-17 14:58:16 +0000
commit392560e72e0b3b06c6ed873f1b7da7535450f476 (patch)
tree3ef3d17edc148204cb1e6ec58afce071d13d87a1 /ext
parentb6a60af4961dd67d6cbb77dd2dfc03da733a26bc (diff)
* ext/extmk.rb (relative_from): treat mere drive letter as an absolute
path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 2342b0ce3..f5764168a 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)