[BACK]Return to sftp-client.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp-client.c between version 1.151 and 1.152

version 1.151, 2021/08/07 00:14:17 version 1.152, 2021/08/07 01:55:01
Line 31 
Line 31 
 #include <dirent.h>  #include <dirent.h>
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
   #include <poll.h>
 #include <signal.h>  #include <signal.h>
 #include <stdarg.h>  #include <stdarg.h>
 #include <stdio.h>  #include <stdio.h>
Line 2123 
Line 2124 
     Attrib *a, int preserve_flag)      Attrib *a, int preserve_flag)
 {  {
         struct sshbuf *msg;          struct sshbuf *msg;
         int write_error, read_error, lmodified = 0, r;          int write_error, read_error, r;
         u_int64_t offset = 0, size;          u_int64_t offset = 0, size;
         u_int id, buflen, num_req, max_req, status = SSH2_FX_OK;          u_int id, buflen, num_req, max_req, status = SSH2_FX_OK;
         u_int num_upload_req;          u_int num_upload_req;
Line 2245 
Line 2246 
                         if (len > req->len)                          if (len > req->len)
                                 fatal("Received more data than asked for "                                  fatal("Received more data than asked for "
                                     "%zu > %zu", len, req->len);                                      "%zu > %zu", len, req->len);
                         lmodified = 1;  
   
                         /* Write this chunk out to the destination */                          /* Write this chunk out to the destination */
                         sshbuf_reset(msg);                          sshbuf_reset(msg);

Legend:
Removed from v.1.151  
changed lines
  Added in v.1.152