From 335ca5fdf8c59a80932da6e4d9b73726951f7ba1 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 22 Nov 2022 20:01:44 +0200 Subject: [PATCH 21/21] make_dir(): Don't try to create a Windows Drive See osdn #46036 Signed-off-by: Marko Lindqvist --- utility/shared.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utility/shared.c b/utility/shared.c index d93adade9d..303b65eea9 100644 --- a/utility/shared.c +++ b/utility/shared.c @@ -1755,6 +1755,9 @@ bool make_dir(const char *pathname) if (*dir == '/') { /* Don't consider root as directory separator, but skip it. */ dir++; + } else if (dir[0] != '\0' && dir[1] == ':' && dir[2] == '\\') { + /* Don't consider Windows Drive a directory to create, but skip it. */ + dir += 3; } do { -- 2.35.1