summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sftp.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c2c0c508a..4ad86f200 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,9 @@
17 [sftp-client.c] 17 [sftp-client.c]
18 Don't print duplicate messages when progressmeter is off 18 Don't print duplicate messages when progressmeter is off
19 Spotted by job317 AT mailvault.com; ok markus@ 19 Spotted by job317 AT mailvault.com; ok markus@
20 - djm@cvs.openbsd.org 2004/03/03 09:31:20
21 [sftp.c]
22 Fix initialisation of progress meter; ok markus@
20 23
2120040307 2420040307
22 - (tim) [regress/login-timeout.sh] fix building outside of source tree. 25 - (tim) [regress/login-timeout.sh] fix building outside of source tree.
@@ -877,4 +880,4 @@
877 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 880 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
878 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 881 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
879 882
880$Id: ChangeLog,v 1.3281 2004/03/08 12:12:02 djm Exp $ 883$Id: ChangeLog,v 1.3282 2004/03/08 12:12:19 djm Exp $
diff --git a/sftp.c b/sftp.c
index 7f7f50731..a47ccf5a2 100644
--- a/sftp.c
+++ b/sftp.c
@@ -16,7 +16,7 @@
16 16
17#include "includes.h" 17#include "includes.h"
18 18
19RCSID("$OpenBSD: sftp.c,v 1.44 2004/02/17 11:03:08 djm Exp $"); 19RCSID("$OpenBSD: sftp.c,v 1.45 2004/03/03 09:31:20 djm Exp $");
20 20
21#include "buffer.h" 21#include "buffer.h"
22#include "xmalloc.h" 22#include "xmalloc.h"
@@ -44,7 +44,7 @@ size_t num_requests = 16;
44static pid_t sshpid = -1; 44static pid_t sshpid = -1;
45 45
46/* This is set to 0 if the progressmeter is not desired. */ 46/* This is set to 0 if the progressmeter is not desired. */
47int showprogress; 47int showprogress = 1;
48 48
49int remote_glob(struct sftp_conn *, const char *, int, 49int remote_glob(struct sftp_conn *, const char *, int,
50 int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ 50 int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */
@@ -1357,6 +1357,9 @@ main(int argc, char **argv)
1357 } 1357 }
1358 } 1358 }
1359 1359
1360 if (!isatty(STDERR_FILENO))
1361 showprogress = 0;
1362
1360 log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1); 1363 log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1);
1361 1364
1362 if (sftp_direct == NULL) { 1365 if (sftp_direct == NULL) {