From a270756402d2a751da2ce41b0c53ee4dd934827c Mon Sep 17 00:00:00 2001 From: suiso67 Date: Fri, 26 Jul 2024 11:30:36 +0900 Subject: [PATCH] Narrow down ReadWrite folder permission to owner Signed-off-by: suiso67 --- src/libsync/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/filesystem.cpp b/src/libsync/filesystem.cpp index baafe22255995..ba23a600f17d8 100644 --- a/src/libsync/filesystem.cpp +++ b/src/libsync/filesystem.cpp @@ -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) {