mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Merge pull request #7487 from Kaskadee/bugfix/null-check-resultdacl
Fix crash on setting folder permission on non-NTFS file systems on Windows
This commit is contained in:
commit
f6921ca8ed
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ bool FileSystem::setFolderPermissions(const QString &path,
|
|||
qCWarning(lcFileSystem) << "error when calling GetSecurityDescriptorDacl" << path << GetLastError();
|
||||
return false;
|
||||
}
|
||||
if (!daclPresent) {
|
||||
if (!daclPresent || !resultDacl) {
|
||||
qCWarning(lcFileSystem) << "error when calling DACL needed to set a folder read-only or read-write is missing" << path;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue