- (djm) s/get_progname/ssh_get_progname/g to avoid conflict with Heimdal

-lbroken; ok dtucker
This commit is contained in:
Damien Miller 2003-08-22 09:34:41 +10:00
parent 70a3d55b4a
commit 59d3d5b8b4
14 changed files with 22 additions and 18 deletions

View File

@ -1,3 +1,7 @@
20030822
- (djm) s/get_progname/ssh_get_progname/g to avoid conflict with Heimdal
-lbroken; ok dtucker
20030821
- (dtucker) OpenBSD CVS Sync
- markus@cvs.openbsd.org 2003/08/14 16:08:58
@ -845,4 +849,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2896 2003/08/21 07:58:29 dtucker Exp $
$Id: ChangeLog,v 1.2897 2003/08/21 23:34:41 djm Exp $

View File

@ -43,7 +43,7 @@
#include "loginrec.h"
RCSID("$Id: logintest.c,v 1.9 2003/06/02 00:42:17 djm Exp $");
RCSID("$Id: logintest.c,v 1.10 2003/08/21 23:34:41 djm Exp $");
#ifdef HAVE___PROGNAME
extern char *__progname;
@ -287,7 +287,7 @@ main(int argc, char *argv[])
{
printf("Platform-independent login recording test driver\n");
__progname = get_progname(argv[0]);
__progname = ssh_get_progname(argv[0]);
if (argc == 2) {
if (strncmp(argv[1], "-i", 3) == 0)
compile_opts_only = 1;

View File

@ -25,13 +25,13 @@
#include "includes.h"
#include "xmalloc.h"
RCSID("$Id: bsd-misc.c,v 1.17 2003/08/13 10:48:07 dtucker Exp $");
RCSID("$Id: bsd-misc.c,v 1.18 2003/08/21 23:34:42 djm Exp $");
/*
* NB. duplicate __progname in case it is an alias for argv[0]
* Otherwise it may get clobbered by setproctitle()
*/
char *get_progname(char *argv0)
char *ssh_get_progname(char *argv0)
{
#ifdef HAVE___PROGNAME
extern char *__progname;

View File

@ -22,14 +22,14 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* $Id: bsd-misc.h,v 1.10 2003/08/13 10:48:07 dtucker Exp $ */
/* $Id: bsd-misc.h,v 1.11 2003/08/21 23:34:42 djm Exp $ */
#ifndef _BSD_MISC_H
#define _BSD_MISC_H
#include "config.h"
char *get_progname(char *);
char *ssh_get_progname(char *);
#ifndef HAVE_SETSID
#define setsid() setpgrp(0, getpid())

2
scp.c
View File

@ -222,7 +222,7 @@ main(int argc, char **argv)
extern char *optarg;
extern int optind;
__progname = get_progname(argv[0]);
__progname = ssh_get_progname(argv[0]);
args.list = NULL;
addargs(&args, "ssh"); /* overwritten with ssh_program */

View File

@ -1030,7 +1030,7 @@ main(int ac, char **av)
/* XXX should use getopt */
__progname = get_progname(av[0]);
__progname = ssh_get_progname(av[0]);
handle_init();
#ifdef DEBUG_SFTP_SERVER

2
sftp.c
View File

@ -132,7 +132,7 @@ main(int argc, char **argv)
extern int optind;
extern char *optarg;
__progname = get_progname(argv[0]);
__progname = ssh_get_progname(argv[0]);
args.list = NULL;
addargs(&args, "ssh"); /* overwritten with ssh_program */
addargs(&args, "-oForwardX11 no");

View File

@ -319,7 +319,7 @@ main(int argc, char **argv)
char *sc_reader_id = NULL;
int i, ch, deleting = 0, ret = 0;
__progname = get_progname(argv[0]);
__progname = ssh_get_progname(argv[0]);
init_rng();
seed_rng();

View File

@ -1024,7 +1024,7 @@ main(int ac, char **av)
SSLeay_add_all_algorithms();
__progname = get_progname(av[0]);
__progname = ssh_get_progname(av[0]);
init_rng();
seed_rng();

View File

@ -809,7 +809,7 @@ main(int ac, char **av)
extern int optind;
extern char *optarg;
__progname = get_progname(av[0]);
__progname = ssh_get_progname(av[0]);
SSLeay_add_all_algorithms();
log_init(av[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);

View File

@ -697,7 +697,7 @@ main(int argc, char **argv)
extern int optind;
extern char *optarg;
__progname = get_progname(argv[0]);
__progname = ssh_get_progname(argv[0]);
init_rng();
seed_rng();
TAILQ_INIT(&tq);

View File

@ -39,7 +39,7 @@
#include "pathnames.h"
#include "log.h"
RCSID("$Id: ssh-rand-helper.c,v 1.12 2003/07/06 05:20:46 dtucker Exp $");
RCSID("$Id: ssh-rand-helper.c,v 1.13 2003/08/21 23:34:41 djm Exp $");
/* Number of bytes we write out */
#define OUTPUT_SEED_SIZE 48
@ -769,7 +769,7 @@ main(int argc, char **argv)
extern char *optarg;
LogLevel ll;
__progname = get_progname(argv[0]);
__progname = ssh_get_progname(argv[0]);
log_init(argv[0], SYSLOG_LEVEL_INFO, SYSLOG_FACILITY_USER, 1);
ll = SYSLOG_LEVEL_INFO;

2
ssh.c
View File

@ -212,7 +212,7 @@ main(int ac, char **av)
extern int optind, optreset;
extern char *optarg;
__progname = get_progname(av[0]);
__progname = ssh_get_progname(av[0]);
init_rng();
/*

2
sshd.c
View File

@ -819,7 +819,7 @@ main(int ac, char **av)
#ifdef HAVE_SECUREWARE
(void)set_auth_parameters(ac, av);
#endif
__progname = get_progname(av[0]);
__progname = ssh_get_progname(av[0]);
init_rng();
/* Save argv. Duplicate so setproctitle emulation doesn't clobber it */