]> andersk Git - openssh.git/commitdiff
- (dtucker) [entropy.c] Remove unnecessary tests for getuid and geteuid
authordtucker <dtucker>
Tue, 27 Sep 2005 09:50:25 +0000 (09:50 +0000)
committerdtucker <dtucker>
Tue, 27 Sep 2005 09:50:25 +0000 (09:50 +0000)
   calls, since they can't possibly fail.  ok djm@

ChangeLog
entropy.c

index 5372a18ce309da2223cc8ec035f34390ead5d6e9..7cd387da9b5be1919cc21ead9c29093d825b479a 100644 (file)
--- 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@
index 5e73495dde20416177b4eff669819a73db99f5f9..b3081af9b4dfed565540d37026a9aad5ac3d3da7 100644 (file)
--- 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
 }
 
This page took 1.104722 seconds and 5 git commands to generate.