- (stevesk) sftp.c: handle __progname
diff --git a/sftp.c b/sftp.c
index b2c4a64..f24f750 100644
--- a/sftp.c
+++ b/sftp.c
@@ -40,6 +40,12 @@
#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 @@
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) {