qt5base-lts/tests/auto/corelib/io
Kai Koehne a60571b370 QSaveFile: Fix permissions on creation
QSaveFile is intended to be a replacement for QFile, and should use the
same permissions for newly created files. QTemporaryFile however creates
new files with 0600 mask by default.

Fix this by making the mode_t argument QTemporaryFileEngine uses
configurable, and using 0666 for QSaveFile (like we do in QFile).

[ChangeLog][Important behavior changes] Files created by QSaveFile do
now have the same rights as files created by QFile. This also fixes a
regression in QSettings: In the Qt 5.4 series, new files created by
QSettings were only readable by the current user.

Task-number: QTBUG-44086
Change-Id: Ie1cc20e9f25c6e72e1bc9176490c419c27c5fc82
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-04-08 07:48:17 +00:00
..
largefile Fix tst_largefile QCOMPARE value types 2015-03-18 13:35:40 +00:00
qabstractfileengine Update copyright headers 2015-02-11 06:49:51 +00:00
qbuffer Update copyright headers 2015-02-11 06:49:51 +00:00
qdatastream Update copyright headers 2015-02-11 06:49:51 +00:00
qdataurl Update copyright headers 2015-02-11 06:49:51 +00:00
qdebug Update copyright headers 2015-02-11 06:49:51 +00:00
qdir Android: Fix tst_QDir::cdBelowRoot() 2015-02-17 15:03:07 +00:00
qdiriterator Update copyright headers 2015-02-11 06:49:51 +00:00
qfile Skip instead of entirely excluding tests with disabled features 2015-03-16 09:34:15 +00:00
qfileinfo Skip instead of entirely excluding tests with disabled features 2015-03-16 09:34:15 +00:00
qfileselector Update copyright headers 2015-02-11 06:49:51 +00:00
qfilesystementry Update copyright headers 2015-02-11 06:49:51 +00:00
qfilesystemwatcher Update copyright headers 2015-02-11 06:49:51 +00:00
qiodevice QIODevice: do not change the 'pos' member for sequential devices 2015-04-04 08:40:01 +00:00
qipaddress Update strtoll and strtoull from upstream FreeBSD 2015-03-26 06:11:14 +00:00
qlockfile Update copyright headers 2015-02-11 06:49:51 +00:00
qloggingcategory Update copyright headers 2015-02-11 06:49:51 +00:00
qloggingregistry Update copyright headers 2015-02-11 06:49:51 +00:00
qnodebug QDateTime: drop quotes in QDebug output 2015-02-21 16:58:39 +00:00
qprocess Update copyright headers 2015-02-11 06:49:51 +00:00
qprocess-noapplication Update copyright headers 2015-02-11 06:49:51 +00:00
qprocessenvironment Update copyright headers 2015-02-11 06:49:51 +00:00
qresourceengine Update copyright headers 2015-02-11 06:49:51 +00:00
qsavefile QSaveFile: Fix permissions on creation 2015-04-08 07:48:17 +00:00
qsettings Update copyright headers 2015-02-11 06:49:51 +00:00
qstandardpaths Update copyright headers 2015-02-11 06:49:51 +00:00
qstorageinfo Haiku: Adapt tst_qstorageinfo unit test to Haiku 2015-02-14 08:12:46 +00:00
qtemporarydir Update copyright headers 2015-02-11 06:49:51 +00:00
qtemporaryfile Update copyright headers 2015-02-11 06:49:51 +00:00
qtextstream Skip instead of entirely excluding tests with disabled features 2015-03-16 09:34:15 +00:00
qurl tst_QUrl: Add extra testcases 2015-03-14 01:15:05 +00:00
qurlinternal Update copyright headers 2015-02-11 06:49:51 +00:00
qurlquery Update copyright headers 2015-02-11 06:49:51 +00:00
qwinoverlappedionotifier Update copyright headers 2015-02-11 06:49:51 +00:00
io.pro Add the QStorageInfo class 2014-08-13 16:09:58 +02:00