diff options
author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-06-27 13:21:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 13:21:00 +1000 |
commit | bf380813829b11d42ff0703630600e5bee06098b (patch) | |
tree | 0c0951e0ec5c36a6de14535903092b539bdbbf9b /sway/main.c | |
parent | eeb38d65cbf5c8452c449b9f5e003bd255ca6a53 (diff) | |
parent | f0f50c31d5e40f3dbe80c60d01bafc80c3bd24c0 (diff) |
Merge branch 'master' into xwayland-wants-float
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 a7e808ad..a325dc3a 100644 --- a/sway/main.c +++ b/sway/main.c @@ -359,6 +359,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() |