diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 | ||
82 | extern char *__progname; | ||
83 | #else | ||
84 | char *__progname; | ||
85 | #endif | ||
86 | |||
81 | /* Server configuration options. */ | 87 | /* Server configuration options. */ |
82 | ServerOptions options; | 88 | ServerOptions 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]. */ |