From 905bbc2752407f972739816cf307ea3841d2e1d1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 17 Apr 2005 14:58:16 +0000 Subject: * ext/extmk.rb (relative_from): treat mere drive letter as an absolute path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/extmk.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/extmk.rb b/ext/extmk.rb index f14475fca..4696b332a 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) -- cgit