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
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-28 12:12:28 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-28 18:25:31 +0300
commit945bccdeefcd003cc044020331b219990987a4bc (patch)
tree6ef36b0a590405d8da40cca9ec25eb66077a73b6 /src
parent9aa431941f6b81127658525dea229b8a443b00bf (diff)
Remove NtfsPermissionLookupRAII again as the action will fail anyhow
Diffstat (limited to 'src')
-rw-r--r--src/common/filesystembase.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/filesystembase.cpp b/src/common/filesystembase.cpp
index 640589ca3..46c7f6640 100644
--- a/src/common/filesystembase.cpp
+++ b/src/common/filesystembase.cpp
@@ -199,9 +199,6 @@ bool FileSystem::uncheckedRenameReplace(const QString &originFileName,
#else //Q_OS_WIN
// You can not overwrite a read-only file on windows.
- Utility::NtfsPermissionLookupRAII ntfs_perm;
- // Warning: This function does not manipulate ACLs, which may limit its effectiveness.
- // this renders this check kind of pointless
if (!QFileInfo(destinationFileName).isWritable()) {
setFileReadOnly(destinationFileName, false);
}
@@ -368,9 +365,6 @@ bool FileSystem::remove(const QString &fileName, QString *errorString)
// You cannot delete a read-only file on windows, but we want to
// allow that.
- Utility::NtfsPermissionLookupRAII ntfs_perm;
- // Warning: This function does not manipulate ACLs, which may limit its effectiveness.
- // this renders this check kind of pointless
if (!QFileInfo(fileName).isWritable()) {
setFileReadOnly(fileName, false);
}