diff options
author | jkobus <jaroslaw.kobus@theqtcompany.com> | 2014-12-02 12:58:04 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2014-12-02 17:00:47 +0100 |
commit | d49f1c9e66a7458e649947241b4790ce6d294c51 (patch) | |
tree | 9bdf473104cc82b6a04d303c23005f8d8e22b443 /src | |
parent | bea947e1e360c6e3dedfd503a17fc4e0879ebfb0 (diff) |
Enable setuid on Mac
Avoid a fatal error:
"FATAL: The application binary appears to be running setuid, this is a
security hole."
Change-Id: Ie6281c7095fc8b6f2bbbf449005640c52e09f7a1
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/sdk/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sdk/main.cpp b/src/sdk/main.cpp index dcd904fb9..2e698f35d 100644 --- a/src/sdk/main.cpp +++ b/src/sdk/main.cpp @@ -61,6 +61,7 @@ int main(int argc, char *argv[]) { // increase maximum numbers of file descriptors #if defined (Q_OS_OSX) + QCoreApplication::setSetuidAllowed(true); struct rlimit rl; getrlimit(RLIMIT_NOFILE, &rl); rl.rlim_cur = qMin((rlim_t) OPEN_MAX, rl.rlim_max); |