Merge pull request #6949 from suiso67/fix/excessive-folder-permission

Narrow down ReadWrite folder permission to owner
This commit is contained in:
Matthieu Gallien 2024-09-09 16:03:49 +02:00 committed by GitHub
commit 9fc15d4401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {