forked from qt-creator/qt-creator
SDKtool: Create group/world readable files
Task-number: QTCREATORBUG-8458 Change-Id: I69234f0056ff4a3b00d217f7aad57b78db2096fc Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user