Skip to content

Commit

Permalink
Narrow down ReadWrite folder permission to owner
Browse files Browse the repository at this point in the history
Signed-off-by: suiso67 <[email protected]>
  • Loading branch information
suiso67 authored and backportbot[bot] committed Sep 9, 2024
1 parent 955aaf5 commit 13c73a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 13c73a5

Please sign in to comment.