mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
Fix Debian bug #659376: .netsurf must not be world readable
svn path=/trunk/netsurf/; revision=13438
This commit is contained in:
parent
4dd1b4d80b
commit
6d8cb05732
@ -472,10 +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, 0777) == -1) {
|
||||
if (mkdir(buf, 0700) == -1) {
|
||||
LOG(("Unable to create %s", buf));
|
||||
die("NetSurf requires ~/.netsurf to exist, but it cannot be created.\n");
|
||||
}
|
||||
} else {
|
||||
chmod(buf, 0700);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user