diff options
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -35,9 +35,10 @@ | |||
35 | #include "ssh.h" | 35 | #include "ssh.h" |
36 | #include "xmalloc.h" | 36 | #include "xmalloc.h" |
37 | #include "atomicio.h" | 37 | #include "atomicio.h" |
38 | #include "pathnames.h" | ||
38 | #include "log.h" | 39 | #include "log.h" |
39 | 40 | ||
40 | RCSID("$Id: entropy.c,v 1.24 2001/01/22 05:34:41 mouring Exp $"); | 41 | RCSID("$Id: entropy.c,v 1.25 2001/01/22 21:06:20 mouring Exp $"); |
41 | 42 | ||
42 | #ifndef offsetof | 43 | #ifndef offsetof |
43 | # define offsetof(type, member) ((size_t) &((type *)0)->member) | 44 | # define offsetof(type, member) ((size_t) &((type *)0)->member) |
@@ -560,7 +561,7 @@ prng_write_seedfile(void) { | |||
560 | 561 | ||
561 | /* Try to ensure that the parent directory is there */ | 562 | /* Try to ensure that the parent directory is there */ |
562 | snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, | 563 | snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, |
563 | SSH_USER_DIR); | 564 | _PATH_SSH_USER_DIR); |
564 | mkdir(filename, 0700); | 565 | mkdir(filename, 0700); |
565 | 566 | ||
566 | snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, | 567 | snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, |