diff --git a/src/tools/sdktool/main.cpp b/src/tools/sdktool/main.cpp index 92d93268464..5f6e62682d0 100644 --- a/src/tools/sdktool/main.cpp +++ b/src/tools/sdktool/main.cpp @@ -159,6 +159,15 @@ int parseArguments(const QStringList &args, Settings *s, const QList= QT_VERSION_CHECK(5, 3, 0)) + // Since 5.3, Qt by default aborts if the effective user id is different than the + // real user id. However, in IFW on Mac we use setuid to 'elevate' + // permissions if needed. This is considered safe because the user has to provide + // the credentials manually - an attack would require at least access to the + // user's environment. + QCoreApplication::setSetuidAllowed(true); +#endif + QCoreApplication a(argc, argv); Settings settings;