diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-10-06 12:46:30 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-10-06 13:00:21 (GMT) |
commit | bf69c7e0af67ec877da4fee244386e538fa1c01d (patch) | |
tree | 2c2c35f5f377e27ef5c0d7ddd18070212837e6cd | |
parent | 6e1b00087902866cd4c0e3057690d045356869f0 (diff) | |
download | Qt-bf69c7e0af67ec877da4fee244386e538fa1c01d.zip Qt-bf69c7e0af67ec877da4fee244386e538fa1c01d.tar.gz Qt-bf69c7e0af67ec877da4fee244386e538fa1c01d.tar.bz2 |
Fix incorrect QFileInfo permissions on windows
Requesting the write permission marked the read permission as known
without having retrieved it. A subsequent request for read permission
would return false.
Task-Number: QTBUG-20714
Reviewed-By: mread
-rw-r--r-- | src/corelib/io/qfilesystemengine_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemengine_win.cpp b/src/corelib/io/qfilesystemengine_win.cpp index 031d64b..3296bab 100644 --- a/src/corelib/io/qfilesystemengine_win.cpp +++ b/src/corelib/io/qfilesystemengine_win.cpp @@ -692,7 +692,7 @@ bool QFileSystemEngine::fillPermissions(const QFileSystemEntry &entry, QFileSyst if (what & QFileSystemMetaData::UserWritePermission) { if (::_waccess((wchar_t*)entry.nativeFilePath().utf16(), W_OK) == 0) data.entryFlags |= QFileSystemMetaData::UserWritePermission; - data.knownFlagsMask |= QFileSystemMetaData::UserReadPermission; + data.knownFlagsMask |= QFileSystemMetaData::UserWritePermission; } } |