Wrap use of folder permissions restore in mac ifdefs
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 11 Sep 2024 06:21:25 +0000 (14:21 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 11 Sep 2024 06:21:25 +0000 (14:21 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/libsync/propagatorjobs.cpp

index 4bfe04da6c5d3c56b1db95c05f3d2bfc97bcff49..0a0a84e0d4934abbeebfc5312513d5293420662a 100644 (file)
@@ -377,9 +377,9 @@ void PropagateLocalRename::start()
                 qCWarning(lcPropagateLocalRename) << "exception when checking parent folder access rights" << e.what() << e.path1().c_str() << e.path2().c_str();
             }
         };
-#endif
 
         const auto folderPermissionsHandler = FileSystem::FilePermissionsRestore{existingFile, FileSystem::FolderPermissions::ReadWrite};
+#endif
 
         emit propagator()->touchedFile(existingFile);
         emit propagator()->touchedFile(targetFile);