mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +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:
parent
ff294f4ffd
commit
e415865e58
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user