summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--logintest.c4
-rw-r--r--openbsd-compat/bsd-misc.c4
-rw-r--r--openbsd-compat/bsd-misc.h4
-rw-r--r--scp.c2
-rw-r--r--sftp-server.c2
-rw-r--r--sftp.c2
-rw-r--r--ssh-add.c2
-rw-r--r--ssh-agent.c2
-rw-r--r--ssh-keygen.c2
-rw-r--r--ssh-keyscan.c2
-rw-r--r--ssh-rand-helper.c4
-rw-r--r--ssh.c2
-rw-r--r--sshd.c2
14 files changed, 22 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 081b07907..ded30f05a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120030822
2 - (djm) s/get_progname/ssh_get_progname/g to avoid conflict with Heimdal
3 -lbroken; ok dtucker
4
120030821 520030821
2 - (dtucker) OpenBSD CVS Sync 6 - (dtucker) OpenBSD CVS Sync
3 - markus@cvs.openbsd.org 2003/08/14 16:08:58 7 - markus@cvs.openbsd.org 2003/08/14 16:08:58
@@ -845,4 +849,4 @@
845 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 849 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
846 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 850 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
847 851
848$Id: ChangeLog,v 1.2896 2003/08/21 07:58:29 dtucker Exp $ 852$Id: ChangeLog,v 1.2897 2003/08/21 23:34:41 djm Exp $
diff --git a/logintest.c b/logintest.c
index a0c08118b..3f3997d10 100644
--- a/logintest.c
+++ b/logintest.c
@@ -43,7 +43,7 @@
43 43
44#include "loginrec.h" 44#include "loginrec.h"
45 45
46RCSID("$Id: logintest.c,v 1.9 2003/06/02 00:42:17 djm Exp $"); 46RCSID("$Id: logintest.c,v 1.10 2003/08/21 23:34:41 djm Exp $");
47 47
48#ifdef HAVE___PROGNAME 48#ifdef HAVE___PROGNAME
49extern char *__progname; 49extern char *__progname;
@@ -287,7 +287,7 @@ main(int argc, char *argv[])
287{ 287{
288 printf("Platform-independent login recording test driver\n"); 288 printf("Platform-independent login recording test driver\n");
289 289
290 __progname = get_progname(argv[0]); 290 __progname = ssh_get_progname(argv[0]);
291 if (argc == 2) { 291 if (argc == 2) {
292 if (strncmp(argv[1], "-i", 3) == 0) 292 if (strncmp(argv[1], "-i", 3) == 0)
293 compile_opts_only = 1; 293 compile_opts_only = 1;
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index d4c793724..56cb45ade 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -25,13 +25,13 @@
25#include "includes.h" 25#include "includes.h"
26#include "xmalloc.h" 26#include "xmalloc.h"
27 27
28RCSID("$Id: bsd-misc.c,v 1.17 2003/08/13 10:48:07 dtucker Exp $"); 28RCSID("$Id: bsd-misc.c,v 1.18 2003/08/21 23:34:42 djm Exp $");
29 29
30/* 30/*
31 * NB. duplicate __progname in case it is an alias for argv[0] 31 * NB. duplicate __progname in case it is an alias for argv[0]
32 * Otherwise it may get clobbered by setproctitle() 32 * Otherwise it may get clobbered by setproctitle()
33 */ 33 */
34char *get_progname(char *argv0) 34char *ssh_get_progname(char *argv0)
35{ 35{
36#ifdef HAVE___PROGNAME 36#ifdef HAVE___PROGNAME
37 extern char *__progname; 37 extern char *__progname;
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index f2fbdc2e3..2857de59b 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -22,14 +22,14 @@
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25/* $Id: bsd-misc.h,v 1.10 2003/08/13 10:48:07 dtucker Exp $ */ 25/* $Id: bsd-misc.h,v 1.11 2003/08/21 23:34:42 djm Exp $ */
26 26
27#ifndef _BSD_MISC_H 27#ifndef _BSD_MISC_H
28#define _BSD_MISC_H 28#define _BSD_MISC_H
29 29
30#include "config.h" 30#include "config.h"
31 31
32char *get_progname(char *); 32char *ssh_get_progname(char *);
33 33
34#ifndef HAVE_SETSID 34#ifndef HAVE_SETSID
35#define setsid() setpgrp(0, getpid()) 35#define setsid() setpgrp(0, getpid())
diff --git a/scp.c b/scp.c
index cf979f250..4f9247c2d 100644
--- a/scp.c
+++ b/scp.c
@@ -222,7 +222,7 @@ main(int argc, char **argv)
222 extern char *optarg; 222 extern char *optarg;
223 extern int optind; 223 extern int optind;
224 224
225 __progname = get_progname(argv[0]); 225 __progname = ssh_get_progname(argv[0]);
226 226
227 args.list = NULL; 227 args.list = NULL;
228 addargs(&args, "ssh"); /* overwritten with ssh_program */ 228 addargs(&args, "ssh"); /* overwritten with ssh_program */
diff --git a/sftp-server.c b/sftp-server.c
index 250814d72..9166853ed 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1030,7 +1030,7 @@ main(int ac, char **av)
1030 1030
1031 /* XXX should use getopt */ 1031 /* XXX should use getopt */
1032 1032
1033 __progname = get_progname(av[0]); 1033 __progname = ssh_get_progname(av[0]);
1034 handle_init(); 1034 handle_init();
1035 1035
1036#ifdef DEBUG_SFTP_SERVER 1036#ifdef DEBUG_SFTP_SERVER
diff --git a/sftp.c b/sftp.c
index 4354bfd44..c2a6593b8 100644
--- a/sftp.c
+++ b/sftp.c
@@ -132,7 +132,7 @@ main(int argc, char **argv)
132 extern int optind; 132 extern int optind;
133 extern char *optarg; 133 extern char *optarg;
134 134
135 __progname = get_progname(argv[0]); 135 __progname = ssh_get_progname(argv[0]);
136 args.list = NULL; 136 args.list = NULL;
137 addargs(&args, "ssh"); /* overwritten with ssh_program */ 137 addargs(&args, "ssh"); /* overwritten with ssh_program */
138 addargs(&args, "-oForwardX11 no"); 138 addargs(&args, "-oForwardX11 no");
diff --git a/ssh-add.c b/ssh-add.c
index 5b0fbbce6..2e394e5c1 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -319,7 +319,7 @@ main(int argc, char **argv)
319 char *sc_reader_id = NULL; 319 char *sc_reader_id = NULL;
320 int i, ch, deleting = 0, ret = 0; 320 int i, ch, deleting = 0, ret = 0;
321 321
322 __progname = get_progname(argv[0]); 322 __progname = ssh_get_progname(argv[0]);
323 init_rng(); 323 init_rng();
324 seed_rng(); 324 seed_rng();
325 325
diff --git a/ssh-agent.c b/ssh-agent.c
index 6c8ff30dd..c05c61468 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1024,7 +1024,7 @@ main(int ac, char **av)
1024 1024
1025 SSLeay_add_all_algorithms(); 1025 SSLeay_add_all_algorithms();
1026 1026
1027 __progname = get_progname(av[0]); 1027 __progname = ssh_get_progname(av[0]);
1028 init_rng(); 1028 init_rng();
1029 seed_rng(); 1029 seed_rng();
1030 1030
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 2ce5553f6..dbc514737 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -809,7 +809,7 @@ main(int ac, char **av)
809 extern int optind; 809 extern int optind;
810 extern char *optarg; 810 extern char *optarg;
811 811
812 __progname = get_progname(av[0]); 812 __progname = ssh_get_progname(av[0]);
813 813
814 SSLeay_add_all_algorithms(); 814 SSLeay_add_all_algorithms();
815 log_init(av[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1); 815 log_init(av[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index 358a1e353..9fa8aaebc 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -697,7 +697,7 @@ main(int argc, char **argv)
697 extern int optind; 697 extern int optind;
698 extern char *optarg; 698 extern char *optarg;
699 699
700 __progname = get_progname(argv[0]); 700 __progname = ssh_get_progname(argv[0]);
701 init_rng(); 701 init_rng();
702 seed_rng(); 702 seed_rng();
703 TAILQ_INIT(&tq); 703 TAILQ_INIT(&tq);
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c
index 88e6e7c05..7e65e4569 100644
--- a/ssh-rand-helper.c
+++ b/ssh-rand-helper.c
@@ -39,7 +39,7 @@
39#include "pathnames.h" 39#include "pathnames.h"
40#include "log.h" 40#include "log.h"
41 41
42RCSID("$Id: ssh-rand-helper.c,v 1.12 2003/07/06 05:20:46 dtucker Exp $"); 42RCSID("$Id: ssh-rand-helper.c,v 1.13 2003/08/21 23:34:41 djm Exp $");
43 43
44/* Number of bytes we write out */ 44/* Number of bytes we write out */
45#define OUTPUT_SEED_SIZE 48 45#define OUTPUT_SEED_SIZE 48
@@ -769,7 +769,7 @@ main(int argc, char **argv)
769 extern char *optarg; 769 extern char *optarg;
770 LogLevel ll; 770 LogLevel ll;
771 771
772 __progname = get_progname(argv[0]); 772 __progname = ssh_get_progname(argv[0]);
773 log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1); 773 log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);
774 774
775 ll = SYSLOG_LEVEL_INFO; 775 ll = SYSLOG_LEVEL_INFO;
diff --git a/ssh.c b/ssh.c
index 694bb5acc..46640a857 100644
--- a/ssh.c
+++ b/ssh.c
@@ -212,7 +212,7 @@ main(int ac, char **av)
212 extern int optind, optreset; 212 extern int optind, optreset;
213 extern char *optarg; 213 extern char *optarg;
214 214
215 __progname = get_progname(av[0]); 215 __progname = ssh_get_progname(av[0]);
216 init_rng(); 216 init_rng();
217 217
218 /* 218 /*
diff --git a/sshd.c b/sshd.c
index dc275b0cb..0e1bde3a3 100644
--- a/sshd.c
+++ b/sshd.c
@@ -819,7 +819,7 @@ main(int ac, char **av)
819#ifdef HAVE_SECUREWARE 819#ifdef HAVE_SECUREWARE
820 (void)set_auth_parameters(ac, av); 820 (void)set_auth_parameters(ac, av);
821#endif 821#endif
822 __progname = get_progname(av[0]); 822 __progname = ssh_get_progname(av[0]);
823 init_rng(); 823 init_rng();
824 824
825 /* Save argv. Duplicate so setproctitle emulation doesn't clobber it */ 825 /* Save argv. Duplicate so setproctitle emulation doesn't clobber it */