diff options
author | damien <damien> | 2000-05-11 09:10:58 +0000 |
---|---|---|
committer | damien <damien> | 2000-05-11 09:10:58 +0000 |
commit | 7333eccb629814b02f260f03bef2bb41b34d88bc (patch) | |
tree | 937efda68e634d6027bcf9552d28cb0f99eeddb0 /entropy.c | |
parent | 6dbdc4dcf76ca13aa75deb022213c722b0600212 (diff) | |
download | openssh-7333eccb629814b02f260f03bef2bb41b34d88bc.tar.gz |
- Fix for prng_seed permissions checking from Lutz Jaenicke
<Lutz.Jaenicke@aet.TU-Cottbus.DE>
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()); |