aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 71ed0d6..9833ee3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -120,8 +120,8 @@ void no_new_privs(void)
// This happens in tlsdated earlier than when tlsdate-helper drops
// privileges.
if (0 == prctl (PR_GET_NO_NEW_PRIVS)) {
- // Remove the ability to regain privilegess
- if (0 != prctl (PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0));
+ // Remove the ability to regain privileges.
+ if (0 != prctl (PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0))
die ("Failed to PR_SET_NO_NEW_PRIVS");
} else {
verb ("V: Parent process has already set PR_SET_NO_NEW_PRIVS");