summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2016-08-06 10:49:59 +0100
committerColin Watson <cjwatson@debian.org>2016-08-07 12:18:58 +0100
commit477bb7636238c106f8cd7c868a8c0c5eabcfb3db (patch)
tree601176af2ecf358c36b766776a86845ad7a3cd6f /sftp-client.c
parent747fac2de0d889183f67f6900194c0462c558544 (diff)
parent4c914ccd85bbf391c4dc61b85e3c178fef465e3f (diff)
New upstream release (7.3p1).
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sftp-client.c b/sftp-client.c
index d49bfaaba..0ca44a4d6 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.c,v 1.121 2016/02/11 02:21:34 djm Exp $ */ 1/* $OpenBSD: sftp-client.c,v 1.124 2016/05/25 23:48:45 schwarze Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -53,6 +53,7 @@
53#include "atomicio.h" 53#include "atomicio.h"
54#include "progressmeter.h" 54#include "progressmeter.h"
55#include "misc.h" 55#include "misc.h"
56#include "utf8.h"
56 57
57#include "sftp.h" 58#include "sftp.h"
58#include "sftp-common.h" 59#include "sftp-common.h"
@@ -515,8 +516,7 @@ do_lsreaddir(struct sftp_conn *conn, const char *path, int print_flag,
515 struct sshbuf *msg; 516 struct sshbuf *msg;
516 u_int count, id, i, expected_id, ents = 0; 517 u_int count, id, i, expected_id, ents = 0;
517 size_t handle_len; 518 size_t handle_len;
518 u_char type; 519 u_char type, *handle;
519 char *handle;
520 int status = SSH2_FX_FAILURE; 520 int status = SSH2_FX_FAILURE;
521 int r; 521 int r;
522 522
@@ -611,7 +611,7 @@ do_lsreaddir(struct sftp_conn *conn, const char *path, int print_flag,
611 } 611 }
612 612
613 if (print_flag) 613 if (print_flag)
614 printf("%s\n", longname); 614 mprintf("%s\n", longname);
615 615
616 /* 616 /*
617 * Directory entries should never contain '/' 617 * Directory entries should never contain '/'
@@ -1461,7 +1461,7 @@ download_dir_internal(struct sftp_conn *conn, const char *src, const char *dst,
1461 return -1; 1461 return -1;
1462 } 1462 }
1463 if (print_flag) 1463 if (print_flag)
1464 printf("Retrieving %s\n", src); 1464 mprintf("Retrieving %s\n", src);
1465 1465
1466 if (dirattrib->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) 1466 if (dirattrib->flags & SSH2_FILEXFER_ATTR_PERMISSIONS)
1467 mode = dirattrib->perm & 01777; 1467 mode = dirattrib->perm & 01777;
@@ -1601,7 +1601,7 @@ do_upload(struct sftp_conn *conn, const char *local_path,
1601 if (resume) { 1601 if (resume) {
1602 /* Get remote file size if it exists */ 1602 /* Get remote file size if it exists */
1603 if ((c = do_stat(conn, remote_path, 0)) == NULL) { 1603 if ((c = do_stat(conn, remote_path, 0)) == NULL) {
1604 close(local_fd); 1604 close(local_fd);
1605 return -1; 1605 return -1;
1606 } 1606 }
1607 1607
@@ -1794,7 +1794,7 @@ upload_dir_internal(struct sftp_conn *conn, const char *src, const char *dst,
1794 return -1; 1794 return -1;
1795 } 1795 }
1796 if (print_flag) 1796 if (print_flag)
1797 printf("Entering %s\n", src); 1797 mprintf("Entering %s\n", src);
1798 1798
1799 attrib_clear(&a); 1799 attrib_clear(&a);
1800 stat_to_attrib(&sb, &a); 1800 stat_to_attrib(&sb, &a);