From 759ab0d942c216fce0ea2db06370b89327b69f29 Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 27 Sep 2005 09:50:25 +0000 Subject: [PATCH] - (dtucker) [entropy.c] Remove unnecessary tests for getuid and geteuid calls, since they can't possibly fail. ok djm@ --- ChangeLog | 4 ++++ entropy.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5372a18c..7cd387da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20050927 + - (dtucker) [entropy.c] Remove unnecessary tests for getuid and geteuid + calls, since they can't possibly fail. ok djm@ + 20050924 - (dtucker) [auth2.c] Move start_pam() calls out of if-else block to remove duplicate call. ok djm@ diff --git a/entropy.c b/entropy.c index 5e73495d..b3081af9 100644 --- a/entropy.c +++ b/entropy.c @@ -145,10 +145,8 @@ init_rng(void) "have %lx", OPENSSL_VERSION_NUMBER, SSLeay()); #ifndef OPENSSL_PRNG_ONLY - if ((original_uid = getuid()) == -1) - fatal("getuid: %s", strerror(errno)); - if ((original_euid = geteuid()) == -1) - fatal("geteuid: %s", strerror(errno)); + original_uid = getuid(); + original_euid = geteuid(); #endif } -- 2.45.1