mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
win32/win32.c (rb_win32_stat): add "." to buf1 only if it has a drive letter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1dd762d181
commit
66598727ef
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue