Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0
-
None
-
Linux
-
a60571b3700e80f44705ebc4bab9628cf852891c
Description
Since Qt 5.4.0, creating a new .ini file with the help of QSettings causes the file to have very limited rights (file permissions 600 on Unix). This is a regression from Qt 5.3 and earlier, where the same file was created with normal rights (644 typically).
Test case
QSettings s("settings.ini", QSettings::IniFormat); s.setValue("some", "value"); s.sync(); QFileInfo file(s.fileName()); qDebug() << "Can everyone read file?" << file.permissions().testFlag(QFile::ReadOther);
Attachments
Issue Links
- relates to
-
QTBUG-21739 QSettings IniFormat writes are not atomic
- Closed
For Gerrit Dashboard: QTBUG-44086 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
104258,13 | Set correct permissions for ini files | 2.0 | installer-framework/installer-framework | Status: MERGED | +2 | 0 |
104606,1 | QSaveFile: Fix permissions on creation | 5.4.1 | qt/qtbase | Status: ABANDONED | -2 | 0 |
109243,5 | QSaveFile: Fix permissions on creation | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |