[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.243 and 1.244

version 1.243, 2022/01/17 21:39:51 version 1.244, 2022/02/01 23:11:11
Line 1279 
Line 1279 
         if (src_is_dir && iamrecursive) {          if (src_is_dir && iamrecursive) {
                 if (upload_dir(conn, src, abs_dst, pflag,                  if (upload_dir(conn, src, abs_dst, pflag,
                     SFTP_PROGRESS_ONLY, 0, 0, 1) != 0) {                      SFTP_PROGRESS_ONLY, 0, 0, 1) != 0) {
                         error("failed to upload directory %s to %s",                          error("failed to upload directory %s to %s", src, targ);
                                 src, abs_dst);  
                         errs = 1;                          errs = 1;
                 }                  }
         } else if (do_upload(conn, src, abs_dst, pflag, 0, 0) != 0) {          } else if (do_upload(conn, src, abs_dst, pflag, 0, 0) != 0) {
                 error("failed to upload file %s to %s", src, abs_dst);                  error("failed to upload file %s to %s", src, targ);
                 errs = 1;                  errs = 1;
         }          }
   
Line 1477 
Line 1476 
         debug3_f("copying remote %s to local %s", abs_src, dst);          debug3_f("copying remote %s to local %s", abs_src, dst);
         if ((r = remote_glob(conn, abs_src, GLOB_MARK, NULL, &g)) != 0) {          if ((r = remote_glob(conn, abs_src, GLOB_MARK, NULL, &g)) != 0) {
                 if (r == GLOB_NOSPACE)                  if (r == GLOB_NOSPACE)
                         error("%s: too many glob matches", abs_src);                          error("%s: too many glob matches", src);
                 else                  else
                         error("%s: %s", abs_src, strerror(ENOENT));                          error("%s: %s", src, strerror(ENOENT));
                 err = -1;                  err = -1;
                 goto out;                  goto out;
         }          }
Line 1878 
Line 1877 
   
         targetisdir = remote_is_dir(to, target);          targetisdir = remote_is_dir(to, target);
         if (!targetisdir && targetshouldbedirectory) {          if (!targetisdir && targetshouldbedirectory) {
                 error("%s: destination is not a directory", target);                  error("%s: destination is not a directory", targ);
                 err = -1;                  err = -1;
                 goto out;                  goto out;
         }          }
Line 1886 
Line 1885 
         debug3_f("copying remote %s to remote %s", abs_src, target);          debug3_f("copying remote %s to remote %s", abs_src, target);
         if ((r = remote_glob(from, abs_src, GLOB_MARK, NULL, &g)) != 0) {          if ((r = remote_glob(from, abs_src, GLOB_MARK, NULL, &g)) != 0) {
                 if (r == GLOB_NOSPACE)                  if (r == GLOB_NOSPACE)
                         error("%s: too many glob matches", abs_src);                          error("%s: too many glob matches", src);
                 else                  else
                         error("%s: %s", abs_src, strerror(ENOENT));                          error("%s: %s", src, strerror(ENOENT));
                 err = -1;                  err = -1;
                 goto out;                  goto out;
         }          }

Legend:
Removed from v.1.243  
changed lines
  Added in v.1.244