diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-03-05 20:50:57 +0100 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-03-05 20:50:57 +0100 |
commit | 12888d1fc8bdcc2212ce61ffd523166c7e4ed5af (patch) | |
tree | a242f4eba3b6cc407a5e156223c8ed5d3732681b /sftp.c | |
parent | - (stevesk) OpenBSD sync: (diff) | |
download | openssh-12888d1fc8bdcc2212ce61ffd523166c7e4ed5af.tar.xz openssh-12888d1fc8bdcc2212ce61ffd523166c7e4ed5af.zip |
- (stevesk) sftp.c: handle __progname
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -40,6 +40,12 @@ RCSID("$OpenBSD: sftp.c,v 1.9 2001/03/03 23:52:22 markus Exp $"); #include "sftp-client.h" #include "sftp-int.h" +#ifdef HAVE___PROGNAME +extern char *__progname; +#else +char *__progname; +#endif + int use_ssh1 = 0; char *ssh_program = _PATH_SSH_PROGRAM; char *sftp_server = NULL; @@ -154,6 +160,7 @@ main(int argc, char **argv) extern int optind; extern char *optarg; + __progname = get_progname(argv[0]); debug_level = compress_flag = 0; while ((ch = getopt(argc, argv, "1hvCo:s:S:")) != -1) { |