Skip to content

Commit

Permalink
Merge pull request #7501 from nextcloud/backport/7487/stable-3.14
Browse files Browse the repository at this point in the history
[stable-3.14] Fix crash on setting folder permission on non-NTFS file systems on Windows
  • Loading branch information
mgallien authored Nov 15, 2024
2 parents 376241d + 093d283 commit 7cd311c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7cd311c

Please sign in to comment.