From e415865e58a5560310baba3efbb38acafb9995c1 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sun, 12 Oct 2008 11:32:23 +0000 Subject: [PATCH] Fix inability to save session on Unix when ~/.putty doesn't exist introduced in r7934. [originally from svn r8204] [r7934 == 087adb167e9e25a09839ca802707c11565468e11] --- unix/uxstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/uxstore.c b/unix/uxstore.c index 33b6d18d..9d767266 100644 --- a/unix/uxstore.c +++ b/unix/uxstore.c @@ -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);