prevent implicit hydration when setting file permissions on shortcuts
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 5 Nov 2024 16:39:28 +0000 (17:39 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 22 Nov 2024 08:50:08 +0000 (09:50 +0100)
we were using specialized API to set the file permissions on the windows
shortcut and later falling back to the generic code path due to the
mising return

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/common/filesystembase.cpp

index 765b081bffb07d101d68e4c2ca4c07af31ab8298..8371cc336097d908b21f6813c067a6dd7e097890 100644 (file)
@@ -131,6 +131,7 @@ void FileSystem::setFileReadOnly(const QString &filename, bool readonly)
         {
             qCWarning(lcFileSystem()) << filename << (readonly ? "readonly" : "read write") << e.what();
         }
+        return;
     }
 #endif
     QFile file(filename);