]> git.sur5r.net Git - i3/i3/blobdiff - src/util.c
Merge pull request #1816 from tcreech/tcreech-for-illumos
[i3/i3] / src / util.c
index 5a95e67cd401c6a0207e850734323c6e5b63387a..0edd471a2c247b7448ee54392dcecc86a08ae4c1 100644 (file)
@@ -222,7 +222,7 @@ char *store_restart_layout(void) {
     char *filenamecopy = sstrdup(filename);
     char *base = dirname(filenamecopy);
     DLOG("Creating \"%s\" for storing the restart layout\n", base);
-    if (!mkdirp(base))
+    if (mkdirp(base, DEFAULT_DIR_MODE) != 0)
         ELOG("Could not create \"%s\" for storing the restart layout, layout will be lost.\n", base);
     free(filenamecopy);