Skip to content
Snippets Groups Projects
Commit 1dbc5e98 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

SDKtool: Create group/world readable files


Task-number: QTCREATORBUG-8458

Change-Id: I69234f0056ff4a3b00d217f7aad57b78db2096fc
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 02871cb8
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@
#include "utils/persistentsettings.h"
#include <QDir>
#include <QFile>
#include <iostream>
......@@ -124,5 +125,8 @@ bool Operation::save(const QVariantMap &map, const QString &file) const
QDir(dir.toString()).mkpath(dir.toString());
Utils::PersistentSettingsWriter writer(path, QLatin1String("unknown"));
return writer.save(map, 0);
return writer.save(map, 0)
&& QFile::setPermissions(path.toString(),
QFile::ReadOwner | QFile::WriteOwner
| QFile::ReadGroup | QFile::ReadOther);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment