diff options
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 9f61aec3b..f5f87cca3 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -93,9 +93,9 @@ char socket_dir[1024]; | |||
93 | 93 | ||
94 | #ifdef HAVE___PROGNAME | 94 | #ifdef HAVE___PROGNAME |
95 | extern char *__progname; | 95 | extern char *__progname; |
96 | #else /* HAVE___PROGNAME */ | 96 | #else |
97 | static const char *__progname = "ssh-agent"; | 97 | char *__progname; |
98 | #endif /* HAVE___PROGNAME */ | 98 | #endif |
99 | 99 | ||
100 | void | 100 | void |
101 | idtab_init(void) | 101 | idtab_init(void) |
@@ -672,6 +672,7 @@ main(int ac, char **av) | |||
672 | char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; | 672 | char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid]; |
673 | extern int optind; | 673 | extern int optind; |
674 | 674 | ||
675 | __progname = get_progname(av[0]); | ||
675 | init_rng(); | 676 | init_rng(); |
676 | 677 | ||
677 | #ifdef __GNU_LIBRARY__ | 678 | #ifdef __GNU_LIBRARY__ |