diff options
author | Ryan Dwyer <[email protected]> | 2018-06-23 16:26:20 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-06-23 16:26:20 +1000 |
commit | b11c9199a61775d7ed441c68238e11e93fbd6d21 (patch) | |
tree | 57c20e5ed9254c8025854175087033347aae768c /sway/main.c | |
parent | 38398e2d77d57dc06b67ec88a54091c897915602 (diff) | |
parent | 5222e1455597c4519869c469978b7d5dce1c8a52 (diff) |
Merge remote-tracking branch 'upstream/master' into atomic
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c index a83660d5..61ae6a5f 100644 --- a/sway/main.c +++ b/sway/main.c @@ -360,6 +360,11 @@ int main(int argc, char **argv) { executable_sanity_check(); bool suid = false; + + if (!server_privileged_prepare(&server)) { + return 1; + } + #ifdef __linux__ if (getuid() != geteuid() || getgid() != getegid()) { // Retain capabilities after setuid() |