]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2004/03/03 09:30:42
authordjm <djm>
Mon, 8 Mar 2004 12:12:02 +0000 (12:12 +0000)
committerdjm <djm>
Mon, 8 Mar 2004 12:12:02 +0000 (12:12 +0000)
     [sftp-client.c]
     Don't print duplicate messages when progressmeter is off
     Spotted by job317 AT mailvault.com; ok markus@

ChangeLog
sftp-client.c

index 2563e9c1ebdc98f0fc468e5e346f8377824ce3b5..097c294afdd7a8dd11d3a724ecf5c7cd31e97135 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    - markus@cvs.openbsd.org 2004/03/03 06:47:52
      [sshd.c]
      change proctiltle after accept(2); ok henning, deraadt, djm
+   - djm@cvs.openbsd.org 2004/03/03 09:30:42
+     [sftp-client.c]
+     Don't print duplicate messages when progressmeter is off
+     Spotted by job317 AT mailvault.com; ok markus@
 
 20040307
  - (tim) [regress/login-timeout.sh] fix building outside of source tree.
index 81c5dd49732fb7f7a09c5f79c6369e0d0898398f..781d9827ae6ea6db02abd152ac769d5e54d92c7b 100644 (file)
@@ -20,7 +20,7 @@
 /* XXX: copy between two remote sites */
 
 #include "includes.h"
-RCSID("$OpenBSD: sftp-client.c,v 1.46 2004/02/17 05:39:51 djm Exp $");
+RCSID("$OpenBSD: sftp-client.c,v 1.47 2004/03/03 09:30:42 djm Exp $");
 
 #include "openbsd-compat/sys-queue.h"
 
@@ -805,13 +805,8 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
        max_req = 1;
        progress_counter = 0;
 
-       if (showprogress) {
-               if (size)
-                       start_progress_meter(remote_path, size,
-                           &progress_counter);
-               else
-                       printf("Fetching %s to %s\n", remote_path, local_path);
-       }
+       if (showprogress && size != 0)
+               start_progress_meter(remote_path, size, &progress_counter);
 
        while (num_req > 0 || max_req > 0) {
                char *data;
@@ -1036,8 +1031,6 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path,
        offset = 0;
        if (showprogress)
                start_progress_meter(local_path, sb.st_size, &offset);
-       else
-               printf("Uploading %s to %s\n", local_path, remote_path);
 
        for (;;) {
                int len;
This page took 0.071611 seconds and 5 git commands to generate.