summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
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]. */