From 49a79c09762613f29601ef2470d13952168021be Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Fri, 17 Nov 2000 03:47:20 +0000 Subject: - (stevek) Reworked progname support. - (bal) Misplaced #include "includes.h" in bsd-setproctitle.c. Patch by Shinichi Maruyama I assume the progname patch was finished. I believe stevek is on vacation, but it passes compiling under Linux and NeXTStep. --- sshd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sshd.c') diff --git a/sshd.c b/sshd.c index 56a39bd01..4a5f66278 100644 --- a/sshd.c +++ b/sshd.c @@ -78,6 +78,12 @@ int deny_severity = LOG_WARNING; #define O_NOCTTY 0 #endif +#ifdef HAVE___PROGNAME +extern char *__progname; +#else +char *__progname; +#endif + /* Server configuration options. */ ServerOptions options; @@ -562,6 +568,7 @@ main(int ac, char **av) int startup_p[2]; int startups = 0; + __progname = get_progname(av[0]); init_rng(); /* Save argv[0]. */ -- cgit v1.2.3