Fix new directory permissions
This commit is contained in:
parent
38353c768d
commit
00866dba9f
|
@ -78,7 +78,13 @@ namespace openloco::config
|
|||
if (!fs::is_directory(dir))
|
||||
{
|
||||
fs::create_directories(configPath.parent_path());
|
||||
fs::permissions(dir, fs::perms::owner_read | fs::perms::owner_write | fs::perms::group_read | fs::perms::others_read);
|
||||
// clang-format off
|
||||
fs::permissions(
|
||||
dir,
|
||||
fs::perms::owner_all |
|
||||
fs::perms::group_read | fs::perms::group_exec |
|
||||
fs::perms::others_read | fs::perms::others_exec);
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
#ifdef _OPENLOCO_USE_BOOST_FS_
|
||||
|
|
Loading…
Reference in New Issue