From c3e310d3d40ae4453e2cac5ff5e7f4e8ad2487c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 15 May 2018 17:47:46 +0200 Subject: [PATCH] System [NT]: Normalize the drive letter explicitly in normalize_path(). Potential fix for [PIKE-105]. --- src/fdlib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fdlib.c b/src/fdlib.c index 628cee890b..09037dcdd5 100644 --- a/src/fdlib.c +++ b/src/fdlib.c @@ -1621,6 +1621,9 @@ PMOD_EXPORT char *debug_fd_normalize_path(const char *path) segments--; } } + } else if ((buffer[1] == ':') && (buffer[0] < 256)) { + /* Normalize the drive letter to upper-case. */ + buffer[0] = toupper(buffer[0]); } res = pike_utf16_to_utf8(buffer); -- GitLab