summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-11 19:10:58 +1000
committerDamien Miller <djm@mindrot.org>2000-05-11 19:10:58 +1000
commitaccfeb3afe07be4875e33dc8f269c868ea929274 (patch)
tree1efbf3f39620f7f4346fa76104a0ff3ca35544fa /entropy.c
parent95e89634296bfdf5ef11f39f10021e9f24938385 (diff)
- Fix for prng_seed permissions checking from Lutz Jaenicke
<Lutz.Jaenicke@aet.TU-Cottbus.DE>
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/entropy.c b/entropy.c
index 9782e0f3..2a1db420 100644
--- a/entropy.c
+++ b/entropy.c
@@ -35,7 +35,7 @@
#include <openssl/rand.h>
#include <openssl/sha.h>
-RCSID("$Id: entropy.c,v 1.8 2000/05/01 23:56:41 damien Exp $");
+RCSID("$Id: entropy.c,v 1.9 2000/05/11 09:10:58 damien Exp $");
#ifdef EGD_SOCKET
#ifndef offsetof
@@ -444,7 +444,7 @@ prng_check_seedfile(char *filename) {
fatal("PRNG seedfile %.100s is not a regular file", filename);
/* mode 0600, owned by root or the current user? */
- if (((st.st_mode & 0177) != 0) || !(st.st_uid == geteuid()))
+ if (((st.st_mode & 0177) != 0) || !(st.st_uid == getuid()))
fatal("PRNG seedfile %.100s must be mode 0600, owned by uid %d",
filename, getuid());