mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-30 19:02:52 +03:00
Use S_IRWXU where appropriate
svn path=/trunk/netsurf/; revision=13439
This commit is contained in:
parent
6d8cb05732
commit
26a1bb7718
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -437,7 +437,7 @@ char *container_extract_theme(const char *themefile, const char *dirbasename)
|
||||
free(themename);
|
||||
return NULL;
|
||||
}
|
||||
mkdir(dirname, 00777);
|
||||
mkdir(dirname, S_IRWXU);
|
||||
|
||||
for (e = container_iterate(cctx, &state), i = 0; i < cctx->entries;
|
||||
e = container_iterate(cctx, &state), i++) {
|
||||
@ -533,7 +533,7 @@ static void extract_theme(const char *themefile, const char *dirname)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
mkdir(dirname, 00777);
|
||||
mkdir(dirname, S_IRWXU);
|
||||
|
||||
cctx = container_open(themefile);
|
||||
if (cctx == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user