1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Fix inability to save session on Unix when ~/.putty doesn't exist introduced

in r7934.

[originally from svn r8204]
[r7934 == 087adb167e]
This commit is contained in:
Jacob Nevins 2008-10-12 11:32:23 +00:00
parent ff294f4ffd
commit e415865e58

View File

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