summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-22 21:06:19 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-22 21:06:19 +0000
commitcb577331b4c30cf33c4811a3f6065d4c076deaa7 (patch)
treec6936130eec96a2db364b87e0c2e95b47909fc8f /entropy.c
parent226cfa03781466907dd252916aeade6879e376b8 (diff)
20010123
- (bal) regexp.h typo in configure.in. Should have been regex.h - (bal) SSH_USER_DIR to _PATH_SSH_USER_DIR patch by stevesk@
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/entropy.c b/entropy.c
index 25e83889e..36ce945fc 100644
--- a/entropy.c
+++ b/entropy.c
@@ -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
40RCSID("$Id: entropy.c,v 1.24 2001/01/22 05:34:41 mouring Exp $"); 41RCSID("$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,