summaryrefslogtreecommitdiff
path: root/shadow.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-17 09:41:12 +0100
committeremersion <contact@emersion.fr>2019-01-17 09:41:12 +0100
commit0c1f193083166ccc56107028bb8b59d7aa767732 (patch)
treed0d5af66a63d471a6a09466aaf670e9ca15128b7 /shadow.c
parent5303a5f3004e9e8e9f43b805086b1aee9376ba49 (diff)
shadow: fix return in initialize_pw_backend
Diffstat (limited to 'shadow.c')
-rw-r--r--shadow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shadow.c b/shadow.c
index a1b664b..e385a1f 100644
--- a/shadow.c
+++ b/shadow.c
@@ -133,7 +133,7 @@ void initialize_pw_backend(void) {
if (setuid(0) != -1) {
swaylock_log_errno(LOG_ERROR, "Unable to drop root (we shouldn't be "
"able to restore it after setuid)");
- return false;
+ exit(EXIT_FAILURE);
}
}