diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sftp-client.c | 13 |
2 files changed, 8 insertions, 11 deletions
@@ -13,6 +13,10 @@ | |||
13 | - markus@cvs.openbsd.org 2004/03/03 06:47:52 | 13 | - markus@cvs.openbsd.org 2004/03/03 06:47:52 |
14 | [sshd.c] | 14 | [sshd.c] |
15 | change proctiltle after accept(2); ok henning, deraadt, djm | 15 | change proctiltle after accept(2); ok henning, deraadt, djm |
16 | - djm@cvs.openbsd.org 2004/03/03 09:30:42 | ||
17 | [sftp-client.c] | ||
18 | Don't print duplicate messages when progressmeter is off | ||
19 | Spotted by job317 AT mailvault.com; ok markus@ | ||
16 | 20 | ||
17 | 20040307 | 21 | 20040307 |
18 | - (tim) [regress/login-timeout.sh] fix building outside of source tree. | 22 | - (tim) [regress/login-timeout.sh] fix building outside of source tree. |
@@ -873,4 +877,4 @@ | |||
873 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 877 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
874 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 878 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
875 | 879 | ||
876 | $Id: ChangeLog,v 1.3280 2004/03/08 12:11:25 djm Exp $ | 880 | $Id: ChangeLog,v 1.3281 2004/03/08 12:12:02 djm Exp $ |
diff --git a/sftp-client.c b/sftp-client.c index 81c5dd497..781d9827a 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -20,7 +20,7 @@ | |||
20 | /* XXX: copy between two remote sites */ | 20 | /* XXX: copy between two remote sites */ |
21 | 21 | ||
22 | #include "includes.h" | 22 | #include "includes.h" |
23 | RCSID("$OpenBSD: sftp-client.c,v 1.46 2004/02/17 05:39:51 djm Exp $"); | 23 | RCSID("$OpenBSD: sftp-client.c,v 1.47 2004/03/03 09:30:42 djm Exp $"); |
24 | 24 | ||
25 | #include "openbsd-compat/sys-queue.h" | 25 | #include "openbsd-compat/sys-queue.h" |
26 | 26 | ||
@@ -805,13 +805,8 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path, | |||
805 | max_req = 1; | 805 | max_req = 1; |
806 | progress_counter = 0; | 806 | progress_counter = 0; |
807 | 807 | ||
808 | if (showprogress) { | 808 | if (showprogress && size != 0) |
809 | if (size) | 809 | start_progress_meter(remote_path, size, &progress_counter); |
810 | start_progress_meter(remote_path, size, | ||
811 | &progress_counter); | ||
812 | else | ||
813 | printf("Fetching %s to %s\n", remote_path, local_path); | ||
814 | } | ||
815 | 810 | ||
816 | while (num_req > 0 || max_req > 0) { | 811 | while (num_req > 0 || max_req > 0) { |
817 | char *data; | 812 | char *data; |
@@ -1036,8 +1031,6 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path, | |||
1036 | offset = 0; | 1031 | offset = 0; |
1037 | if (showprogress) | 1032 | if (showprogress) |
1038 | start_progress_meter(local_path, sb.st_size, &offset); | 1033 | start_progress_meter(local_path, sb.st_size, &offset); |
1039 | else | ||
1040 | printf("Uploading %s to %s\n", local_path, remote_path); | ||
1041 | 1034 | ||
1042 | for (;;) { | 1035 | for (;;) { |
1043 | int len; | 1036 | int len; |