summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/io/qfsfileengine_win.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp
index 90f70ff..8fc73de 100644
--- a/src/corelib/io/qfsfileengine_win.cpp
+++ b/src/corelib/io/qfsfileengine_win.cpp
@@ -1491,7 +1491,7 @@ QAbstractFileEngine::FileFlags QFSFileEnginePrivate::getPermissions(QAbstractFil
ext == QLatin1String(".exe") || ext == QLatin1String(".com") || ext == QLatin1String(".bat") ||
ext == QLatin1String(".pif") || ext == QLatin1String(".cmd")) {
ret |= QAbstractFileEngine::ExeOwnerPerm | QAbstractFileEngine::ExeGroupPerm
- | QAbstractFileEngine::ExeOtherPerm;
+ | QAbstractFileEngine::ExeOtherPerm | QAbstractFileEngine::ExeUserPerm;
}
// calculate user permissions
@@ -1503,10 +1503,6 @@ QAbstractFileEngine::FileFlags QFSFileEnginePrivate::getPermissions(QAbstractFil
if (::_waccess((wchar_t*)longFileName(filePath).utf16(), W_OK) == 0)
ret |= QAbstractFileEngine::WriteUserPerm;
}
- if (type & QAbstractFileEngine::ExeUserPerm) {
- if (::_waccess((wchar_t*)longFileName(filePath).utf16(), X_OK) == 0)
- ret |= QAbstractFileEngine::ExeUserPerm;
- }
}
return ret;
}