From 042cf8e6f21ac560edc1c4de33ea805077f415e6 Mon Sep 17 00:00:00 2001 From: npzacs <npzacs@gmail.com> Date: Fri, 23 Jan 2015 12:49:56 +0200 Subject: [PATCH] Fix creating directory path in Windows stat("C:") seems to fail. --- src/file/keydbcfg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/file/keydbcfg.c b/src/file/keydbcfg.c index aca00f7..ecf260d 100644 --- a/src/file/keydbcfg.c +++ b/src/file/keydbcfg.c @@ -57,6 +57,9 @@ static int _mkpath(const char *path) char *dir = str_printf("%s", path); char *end = dir; +#ifdef _WIN32 + end += 2; /* skip drive */ +#endif while (*end == DIR_SEP_CHAR) end++; -- GitLab