diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-06-01 09:59:48 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-06-01 09:58:34 +0000 |
commit | 6bbba5426c74af6c313958d47ee333096d503a8e (patch) | |
tree | 1bc2fb27453b12ea1e0ad7508d34bed9fd1c8bcd /Changelog | |
parent | 3557b1650c1c4f71947da0ec78e38ffe436f0cb0 (diff) |
OS X: Make sure real user uid == euid in elevated mode
This fixes a bug that prevents changing existing .ini files
during an elevated installation.
QFileSystemEngine::fillMetaData() on Unix uses :access() to check
whether the user can write to a file, based on the real user id.
Because OS X's AuthorizationExecuteWithPrivileges() does keep the
original real user id also in the elevated process,
QFileInfo::isWritable() was returning false for existing files,
which in turn let QSaveFile, and therefore QSettings, to not even
attempt to write to the file.
On Linux, we use sudo to start the elevated process, which already
resets the real user id by default.
Task-number: QTIFW-709
Change-Id: I5bfbd631f579412045b242a08baf206a5d444500
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'Changelog')
0 files changed, 0 insertions, 0 deletions