diff options
-rw-r--r-- | src/corelib/io/qresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qresource.cpp b/src/corelib/io/qresource.cpp index 3aeaa1427b..80247de9a0 100644 --- a/src/corelib/io/qresource.cpp +++ b/src/corelib/io/qresource.cpp @@ -1173,7 +1173,7 @@ bool QDynamicFileResourceRoot::registerSelf(const QString &f) qsizetype data_len = 0; #if defined(QT_USE_MMAP) - int fd = QT_OPEN(QFile::encodeName(f), O_RDONLY, 0666); + int fd = QT_OPEN(QFile::encodeName(f), O_RDONLY); if (fd >= 0) { QT_STATBUF st; if (!QT_FSTAT(fd, &st) && st.st_size <= std::numeric_limits<qsizetype>::max()) { |