summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/entropy.c b/entropy.c
index 2b983bba..04fdc5cc 100644
--- a/entropy.c
+++ b/entropy.c
@@ -40,7 +40,7 @@
#include "pathnames.h"
#include "log.h"
-RCSID("$Id: entropy.c,v 1.32 2001/02/26 22:20:58 djm Exp $");
+RCSID("$Id: entropy.c,v 1.33 2001/02/26 22:47:16 djm Exp $");
#ifndef offsetof
# define offsetof(type, member) ((size_t) &((type *)0)->member)
@@ -850,8 +850,8 @@ void init_rng(void)
* Propagate the privileged uid to all of our uids.
* Set the effective uid to the given (unprivileged) uid.
*/
- if (original_uid != original_euid && setuid(original_euid) == -1 ||
- seteuid(original_uid) == -1)
+ if (original_uid != original_euid && (setuid(original_euid) == -1 ||
+ seteuid(original_uid) == -1))
fatal("Couldn't give up privileges");
#endif /* SAVED_IDS_WORK_WITH_SETEUID */
@@ -866,8 +866,8 @@ void init_rng(void)
* Propagate the real uid (usually more privileged) to effective uid
* as well.
*/
- if (original_uid != original_euid && seteuid(original_euid) == -1 ||
- setuid(original_uid) == -1)
+ if (original_uid != original_euid && (seteuid(original_euid) == -1 ||
+ setuid(original_uid) == -1))
fatal("Couldn't restore privileges");
#endif /* SAVED_IDS_WORK_WITH_SETEUID */