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 committed Aug 21, 2024
1 parent 8cb1db4 commit a270756
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 a270756

Please sign in to comment.