diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-27 09:13:50 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-27 09:13:50 +0000 |
commit | 0667359370b8447f8171b1a323c3b683cf09b311 (patch) | |
tree | 6b97e064bb46c38c44605b45481cda98409e7075 | |
parent | 7b8e8ccd316a5db7891d85161538b3186709cd39 (diff) | |
download | ruby-0667359370b8447f8171b1a323c3b683cf09b311.tar.gz ruby-0667359370b8447f8171b1a323c3b683cf09b311.tar.xz ruby-0667359370b8447f8171b1a323c3b683cf09b311.zip |
win32/win32.c (rb_win32_stat): add "." to buf1 only if it has a drive letter.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 6a7f6be9b..966c32646 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2734,7 +2734,7 @@ rb_w32_stat(const char *path, struct stat *st) *end = '\0'; else if (*end != '\\') strcat(buf1, "\\"); - } else if (*end == '\\' || *end == ':') + } else if (*end == '\\' || (buf1 + 1 == end && *end == ':')) strcat(buf1, "."); ret = stat(buf1, st); |