Narrow down ReadWrite folder permission to owner

Signed-off-by: suiso67 <suiso67@macadamia.rocks>
This commit is contained in:
suiso67 2024-07-26 11:30:36 +09:00 committed by backportbot[bot]
parent 2455bb00c1
commit 76cbf658ea

View file

@ -456,7 +456,7 @@ bool FileSystem::setFolderPermissions(const QString &path,
case OCC::FileSystem::FolderPermissions::ReadOnly:
break;
case OCC::FileSystem::FolderPermissions::ReadWrite:
std::filesystem::permissions(stdStrPath, writePerms, std::filesystem::perm_options::add);
std::filesystem::permissions(stdStrPath, std::filesystem::perms::owner_write, std::filesystem::perm_options::add);
break;
}
} catch (const std::filesystem::filesystem_error &e) {