diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Makefile.in | 6 | ||||
-rw-r--r-- | ssh-rand-helper.c | 9 |
3 files changed, 16 insertions, 5 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20011225 | ||
2 | - (stevesk) [Makefile.in ssh-rand-helper.c] | ||
3 | portable lib and __progname support for ssh-rand-helper; ok djm@ | ||
4 | |||
1 | 20011223 | 5 | 20011223 |
2 | - (bal) Removed contrib/chroot.diff and noted in contrib/README that it | 6 | - (bal) Removed contrib/chroot.diff and noted in contrib/README that it |
3 | was not being maintained. | 7 | was not being maintained. |
@@ -7100,4 +7104,4 @@ | |||
7100 | - Wrote replacements for strlcpy and mkdtemp | 7104 | - Wrote replacements for strlcpy and mkdtemp |
7101 | - Released 1.0pre1 | 7105 | - Released 1.0pre1 |
7102 | 7106 | ||
7103 | $Id: ChangeLog,v 1.1707 2001/12/24 02:59:19 mouring Exp $ | 7107 | $Id: ChangeLog,v 1.1708 2001/12/25 04:32:58 stevesk Exp $ |
diff --git a/Makefile.in b/Makefile.in index 7a722b456..287b5ab1b 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: Makefile.in,v 1.191 2001/12/23 14:41:48 djm Exp $ | 1 | # $Id: Makefile.in,v 1.192 2001/12/25 04:32:58 stevesk Exp $ |
2 | 2 | ||
3 | prefix=@prefix@ | 3 | prefix=@prefix@ |
4 | exec_prefix=@exec_prefix@ | 4 | exec_prefix=@exec_prefix@ |
@@ -122,8 +122,8 @@ sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o | |||
122 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o sftp-common.o sftp-glob.o | 122 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o sftp-common.o sftp-glob.o |
123 | $(LD) -o $@ sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | 123 | $(LD) -o $@ sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
124 | 124 | ||
125 | ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) ssh-rand-helper.o | 125 | ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o |
126 | $(LD) -o $@ ssh-rand-helper.o atomicio.o log.o xmalloc.o $(LDFLAGS) -lopenbsd-compat $(LIBS) | 126 | $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
127 | 127 | ||
128 | # test driver for the loginrec code - not built by default | 128 | # test driver for the loginrec code - not built by default |
129 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o | 129 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o |
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c index 5b7a9fc61..380fee46d 100644 --- a/ssh-rand-helper.c +++ b/ssh-rand-helper.c | |||
@@ -39,7 +39,13 @@ | |||
39 | #include "pathnames.h" | 39 | #include "pathnames.h" |
40 | #include "log.h" | 40 | #include "log.h" |
41 | 41 | ||
42 | RCSID("$Id: ssh-rand-helper.c,v 1.1 2001/12/23 14:41:48 djm Exp $"); | 42 | #ifdef HAVE___PROGNAME |
43 | extern char *__progname; | ||
44 | #else | ||
45 | char *__progname; | ||
46 | #endif | ||
47 | |||
48 | RCSID("$Id: ssh-rand-helper.c,v 1.2 2001/12/25 04:32:58 stevesk Exp $"); | ||
43 | 49 | ||
44 | #define RANDOM_SEED_SIZE 48 | 50 | #define RANDOM_SEED_SIZE 48 |
45 | 51 | ||
@@ -786,6 +792,7 @@ main(int argc, char **argv) | |||
786 | unsigned char buf[48]; | 792 | unsigned char buf[48]; |
787 | int ret; | 793 | int ret; |
788 | 794 | ||
795 | __progname = get_progname(argv[0]); | ||
789 | /* XXX: need some debugging mode */ | 796 | /* XXX: need some debugging mode */ |
790 | log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1); | 797 | log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1); |
791 | 798 | ||