Trying to build OpenSSH-2.1.0 on HP-UX 10.20
Damien Miller
djm at mindrot.org
Thu May 11 19:09:04 EST 2000
On Thu, 11 May 2000, Lutz Jaenicke wrote:
> entropy.c:447
> if (((st.st_mode & 0177) != 0) || !(st.st_uid == geteuid()))
> fatal("PRNG seedfile %.100s must be mode 0600, owned by uid %d,"
> filename, getuid());
>
> Since ssh is suid to root, geteuid() yields "0". Shouldn't the test be
> against getuid() (which is also used for the error message)?
> [works for me with this change]
Quite correct. Thanks.
-d
--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)
More information about the openssh-unix-dev
mailing list