Fix inability to save session on Unix when ~/.putty doesn't exist introduced
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Oct 2008 11:32:23 +0000 (11:32 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Oct 2008 11:32:23 +0000 (11:32 +0000)
in r7934.

git-svn-id: svn://svn.tartarus.org/sgt/putty@8204 cda61777-01e9-0310-a592-d414129be87e

unix/uxstore.c

index 33b6d18..9d76726 100644 (file)
@@ -172,7 +172,7 @@ void *open_settings_w(const char *sessionname, char **errmsg)
      * to catch it now.
      */
     filename = make_filename(INDEX_SESSIONDIR, NULL);
-    if (!mkdir(filename, 0700)) {
+    if (mkdir(filename, 0700) != 0) {
        char *filename2 = make_filename(INDEX_DIR, NULL);
        mkdir(filename2, 0700);
        sfree(filename2);