From 0667359370b8447f8171b1a323c3b683cf09b311 Mon Sep 17 00:00:00 2001 From: eban Date: Thu, 27 Nov 2003 09:13:50 +0000 Subject: 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 --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit