=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sftp.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- src/usr.bin/ssh/sftp.c 2004/02/17 11:03:08 1.44 +++ src/usr.bin/ssh/sftp.c 2004/03/03 09:31:20 1.45 @@ -16,7 +16,7 @@ #include "includes.h" -RCSID("$OpenBSD: sftp.c,v 1.44 2004/02/17 11:03:08 djm Exp $"); +RCSID("$OpenBSD: sftp.c,v 1.45 2004/03/03 09:31:20 djm Exp $"); #include @@ -46,7 +46,7 @@ static pid_t sshpid = -1; /* This is set to 0 if the progressmeter is not desired. */ -int showprogress; +int showprogress = 1; int remote_glob(struct sftp_conn *, const char *, int, int (*)(const char *, int), glob_t *); /* proto for sftp-glob.c */ @@ -1346,6 +1346,9 @@ usage(); } } + + if (!isatty(STDERR_FILENO)) + showprogress = 0; log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1);