diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-17 14:58:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-17 14:58:16 +0000 |
commit | 0972be78a5832588f3bf8a8185891571cb1138a6 (patch) | |
tree | 574920c5883f09efd7e944763355a8f99d0e8a13 /ext/extmk.rb | |
parent | 9f454366f0683bafcfe29a3863acedde6336e04a (diff) |
* ext/extmk.rb (relative_from): treat mere drive letter as an absolute
path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 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) |