Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-21 13:34:02 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-22 13:50:48 +0300
commit0919a2611edc20ce9dd7cb1eda3edc83522ffd3d (patch)
treee58717a25884ff682d3004269cc521c3312e9962 /src/gui/folderman.cpp
parent2a95f3b442e6f75eda39347c3c08ea84fb436335 (diff)
Use NtfsPermissionLookupRAII when checking for readable/writeabel
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r--src/gui/folderman.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp
index da54e3eaf..f3a2ac8ff 100644
--- a/src/gui/folderman.cpp
+++ b/src/gui/folderman.cpp
@@ -517,6 +517,10 @@ Folder *FolderMan::setupFolderFromOldConfigFile(const QString &file, AccountStat
// check the unescaped variant (for the case when the filename comes out
// of the directory listing). If the file does not exist, escape the
// file and try again.
+
+#ifdef Q_OS_WIN
+ Utility::NtfsPermissionLookupRAII ntfs_perm;
+#endif
QFileInfo cfgFile(_folderConfigPath, file);
if (!cfgFile.exists()) {