summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index 7aa25d043..9d352036f 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -472,12 +472,12 @@ static void nsgtk_check_homedir(void)
snprintf(buf, PATH_MAX, "%s/.netsurf", hdir);
if (access(buf, F_OK) != 0) {
LOG(("You don't have a ~/.netsurf - creating one for you."));
- if (mkdir(buf, 0700) == -1) {
+ if (mkdir(buf, S_IRWXU) == -1) {
LOG(("Unable to create %s", buf));
die("NetSurf requires ~/.netsurf to exist, but it cannot be created.\n");
}
} else {
- chmod(buf, 0700);
+ chmod(buf, S_IRWXU);
}
}