From 0e27cb6045e34d6e423a4b960b199277f1c58389 Mon Sep 17 00:00:00 2001 From: jacob 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@8204 cda61777-01e9-0310-a592-d414129be87e --- 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); -- 2.11.0