From: Avuton Olrich Date: Sun, 30 Oct 2011 01:23:30 +0000 (-0700) Subject: conf.c: When on win32, mkdir() doesn't use permissions X-Git-Tag: release-0.20~66 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3aea9244b2da593a848d07a331213496e5b5109b;p=ncmpc.git conf.c: When on win32, mkdir() doesn't use permissions --- diff --git a/src/conf.c b/src/conf.c index 0403559..7fa2863 100644 --- a/src/conf.c +++ b/src/conf.c @@ -575,7 +575,11 @@ check_user_conf_dir(void) return 0; } +#ifndef WIN32 retval = mkdir(directory, 0755); +#else + retval = mkdir(directory); +#endif g_free(directory); return retval; }