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

Diff for /src/usr.bin/ssh/scp.c between version 1.180 and 1.181

version 1.180, 2014/06/24 02:21:01 version 1.181, 2015/01/16 06:40:12
Line 71 
Line 71 
  *   *
  */   */
   
 #include <sys/param.h>  #include <sys/param.h>  /* roundup MAX */
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/poll.h>  #include <sys/poll.h>
 #include <sys/wait.h>  #include <sys/wait.h>
Line 91 
Line 91 
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
 #include <unistd.h>  #include <unistd.h>
   #include <limits.h>
 #include <vis.h>  #include <vis.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
Line 728 
Line 729 
         off_t i, statbytes;          off_t i, statbytes;
         size_t amt, nr;          size_t amt, nr;
         int fd = -1, haderr, indx;          int fd = -1, haderr, indx;
         char *last, *name, buf[2048], encname[MAXPATHLEN];          char *last, *name, buf[2048], encname[PATH_MAX];
         int len;          int len;
   
         for (indx = 0; indx < argc; ++indx) {          for (indx = 0; indx < argc; ++indx) {
Line 837 
Line 838 
 {  {
         DIR *dirp;          DIR *dirp;
         struct dirent *dp;          struct dirent *dp;
         char *last, *vect[1], path[MAXPATHLEN];          char *last, *vect[1], path[PATH_MAX];
   
         if (!(dirp = opendir(name))) {          if (!(dirp = opendir(name))) {
                 run_err("%s: %s", name, strerror(errno));                  run_err("%s: %s", name, strerror(errno));

Legend:
Removed from v.1.180  
changed lines
  Added in v.1.181