Skip to content

Commit

Permalink
Merge pull request #6949 from suiso67/fix/excessive-folder-permission
Browse files Browse the repository at this point in the history
Narrow down ReadWrite folder permission to owner
  • Loading branch information
mgallien authored Sep 9, 2024
2 parents 1405f98 + a270756 commit 9fc15d4
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 9fc15d4

Please sign in to comment.