diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-09-21 13:34:02 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-09-22 13:50:48 +0300 |
commit | 0919a2611edc20ce9dd7cb1eda3edc83522ffd3d (patch) | |
tree | e58717a25884ff682d3004269cc521c3312e9962 /src/gui/folderman.cpp | |
parent | 2a95f3b442e6f75eda39347c3c08ea84fb436335 (diff) |
Use NtfsPermissionLookupRAII when checking for readable/writeabel
Diffstat (limited to 'src/gui/folderman.cpp')
-rw-r--r-- | src/gui/folderman.cpp | 4 |
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()) { |