summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-18 16:58:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-18 16:58:13 +0000
commit0998c2dd0691b5982a5e08471ee99d9bd206f7fc (patch)
tree4d81b9dc2ebce0400655d58ea06828139efac9ed /win32
parenta8e289374a3162d98ec58833550c40e44092179b (diff)
win32/file.c: fix drive letter
* win32/file.c (rb_file_expand_path_internal): neither the drive of base directory nor the current drive are involved in the result if different than the drive of path. [ruby-core:68130] [Bug #10858] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/file.c b/win32/file.c
index 36df39f2fa..0fddaaaa8e 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -501,6 +501,7 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
/* ignore dir since path drive is different from dir drive */
ignore_dir = 1;
wdir_len = 0;
+ dir_drive = 0;
}
}