diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-10-12 16:40:21 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-10-18 13:45:44 (GMT) |
commit | 5c5a74aa789a876805dbdb0f58de03c2195c3b97 (patch) | |
tree | fb9109777a678077db09be96a751c55d5393c77d /src | |
parent | 0aa70ec7195e7a6ee07f73ac3c37030c9d37b132 (diff) | |
download | Qt-5c5a74aa789a876805dbdb0f58de03c2195c3b97.zip Qt-5c5a74aa789a876805dbdb0f58de03c2195c3b97.tar.gz Qt-5c5a74aa789a876805dbdb0f58de03c2195c3b97.tar.bz2 |
Fix for qfileinfo isExecutable test case.
Files in /sys/bin/ on any drive can be assumed to be executable.
So the executable flag is set in the metadata for this path, even though
RFs::Entry fails due to permissions (so we don't know if the file exists or not)
Reviewed-By: joao
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qfilesystemengine_symbian.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qfilesystemengine_symbian.cpp b/src/corelib/io/qfilesystemengine_symbian.cpp index e2dfe53..dcb99d4 100644 --- a/src/corelib/io/qfilesystemengine_symbian.cpp +++ b/src/corelib/io/qfilesystemengine_symbian.cpp @@ -244,6 +244,9 @@ bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemM data.modificationTime_ = TTime(0); data.entryFlags &= ~(QFileSystemMetaData::SymbianTEntryFlags); } + //files in /sys/bin on any drive are executable, even though we don't normally have permission to check whether they exist or not + if(absentry.filePath().midRef(1,10).compare(QLatin1String(":/sys/bin/"), Qt::CaseInsensitive) == 0) + data.entryFlags |= QFileSystemMetaData::ExecutePermissions; } return data.hasFlags(what); } |