check return of chmod (coverity 1109836)

This commit is contained in:
Vincent Sanders 2013-11-27 22:09:21 +00:00
parent 75ec87cbca
commit 47c17ad889

View File

@ -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));
}
}
}