summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-11-17 03:47:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-11-17 03:47:20 +0000
commit49a79c09762613f29601ef2470d13952168021be (patch)
tree140539420c10c5b358481cadcec495a5a41103fd /sshd.c
parentbaaa2c05dd789bdce64fa7eb5697a5f969d68288 (diff)
- (stevek) Reworked progname support.
- (bal) Misplaced #include "includes.h" in bsd-setproctitle.c. Patch by Shinichi Maruyama <marya@st.jip.co.jp> I assume the progname patch was finished. I believe stevek is on vacation, but it passes compiling under Linux and NeXTStep.
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c7
1 files changed, 7 insertions, 0 deletions
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;
78#define O_NOCTTY 0 78#define O_NOCTTY 0
79#endif 79#endif
80 80
81#ifdef HAVE___PROGNAME
82extern char *__progname;
83#else
84char *__progname;
85#endif
86
81/* Server configuration options. */ 87/* Server configuration options. */
82ServerOptions options; 88ServerOptions options;
83 89
@@ -562,6 +568,7 @@ main(int ac, char **av)
562 int startup_p[2]; 568 int startup_p[2];
563 int startups = 0; 569 int startups = 0;
564 570
571 __progname = get_progname(av[0]);
565 init_rng(); 572 init_rng();
566 573
567 /* Save argv[0]. */ 574 /* Save argv[0]. */