Fix permissions for created config folders
This commit is contained in:
parent
4f5219bbbe
commit
dd2be8cb81
|
@ -39,7 +39,7 @@ void create_config_folders_if_necessary() {
|
||||||
pos++;
|
pos++;
|
||||||
}
|
}
|
||||||
path = full_path.substr(0, pos);
|
path = full_path.substr(0, pos);
|
||||||
if (!mkdir(path.c_str(), 0600)) {
|
if (!mkdir(path.c_str(), 0700)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (errno == EEXIST) {
|
if (errno == EEXIST) {
|
||||||
|
|
Loading…
Reference in New Issue