Code

conf.c: When on win32, mkdir() doesn't use permissions
authorAvuton Olrich <avuton@gmail.com>
Sun, 30 Oct 2011 01:23:30 +0000 (18:23 -0700)
committerAvuton Olrich <avuton@gmail.com>
Thu, 3 Nov 2011 02:33:50 +0000 (19:33 -0700)
src/conf.c

index 0403559cfe5fe34fc1098ced0d371ab18c6e31a2..7fa2863c56776ff1abd17d23485629e121304c15 100644 (file)
@@ -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;
 }