aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilad Arnold <garnold@google.com>2015-08-25 07:29:20 -0700
committerGilad Arnold <garnold@google.com>2015-08-25 19:57:08 -0700
commit90cf470a3becacdfea8461f4848d51c1030436cd (patch)
treedb4925d55b7abfc3f9bc1508ed83683d8ec49af4
parent5c103d4734ef0dfa1fb2f3359d41505acd0478ca (diff)
downloadtlsdate-90cf470a3becacdfea8461f4848d51c1030436cd.tar.gz
Remove an accidental semicolon and fix a typo.
Bug: 22373707 Change-Id: I2a68db5a2a4afae896ad46a717ec944dee495730
-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");