forked from qt-creator/qt-creator
Utils: Fix macOS permissions parsing
Change-Id: I5fdde04c197b5db323fc8630c4ee4b2c197d947a Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -629,12 +629,18 @@ FilePathInfo::FileFlags fileInfoFlagsfromStatMode(const QString &hexString, int
|
||||
|
||||
FilePathInfo::FileFlags result;
|
||||
|
||||
if (mode & IRUSR)
|
||||
if (mode & IRUSR) {
|
||||
result |= FilePathInfo::ReadOwnerPerm;
|
||||
if (mode & IWUSR)
|
||||
result |= FilePathInfo::ReadUserPerm;
|
||||
}
|
||||
if (mode & IWUSR) {
|
||||
result |= FilePathInfo::WriteOwnerPerm;
|
||||
if (mode & IXUSR)
|
||||
result |= FilePathInfo::WriteUserPerm;
|
||||
}
|
||||
if (mode & IXUSR) {
|
||||
result |= FilePathInfo::ExeOwnerPerm;
|
||||
result |= FilePathInfo::ExeUserPerm;
|
||||
}
|
||||
if (mode & IRGRP)
|
||||
result |= FilePathInfo::ReadGroupPerm;
|
||||
if (mode & IWGRP)
|
||||
|
||||
Reference in New Issue
Block a user