summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gui.c b/gtk/gui.c
index 9aa563fef..649c4a239 100644
--- a/gtk/gui.c
+++ b/gtk/gui.c
@@ -524,7 +524,9 @@ static void nsgtk_check_homedir(void)
die("NetSurf requires ~/.netsurf to exist, but it cannot be created.\n");
}
} else {
- chmod(buf, S_IRWXU);
+ if (chmod(buf, S_IRWXU) != 0) {
+ LOG(("Unable to set permissions on %s", buf));
+ }
}
}