Use /etc/shadow, not /dev/shadow, pointed out by Andrew Bartlett

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21104 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-18 05:19:45 +00:00
parent ed07eec3c8
commit 5e25789281

View File

@@ -487,8 +487,8 @@ fortuna_reseed(void)
/* add timer info */
if ((*hc_rand_timer_method.bytes)(u.buf, sizeof(u.buf)) == 1)
add_entropy(&main_state, u.buf, sizeof(u.buf));
/* add /dev/shadow */
fd = open("/dev/shadow", O_RDONLY, 0);
/* add /etc/shadow */
fd = open("/etc/shadow", O_RDONLY, 0);
if (fd >= 0) {
ssize_t n;
/* add_entropy will hash the buf */