[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.85.2.3 and 1.86

version 1.85.2.3, 2002/06/22 07:23:17 version 1.86, 2001/12/05 03:56:39
Line 219 
Line 219 
         extern int optind;          extern int optind;
   
         args.list = NULL;          args.list = NULL;
         addargs(&args, "ssh");          /* overwritten with ssh_program */          addargs(&args, "ssh");          /* overwritten with ssh_program */
         addargs(&args, "-x");          addargs(&args, "-x");
         addargs(&args, "-oForwardAgent no");          addargs(&args, "-oForwardAgent no");
           addargs(&args, "-oFallBackToRsh no");
         addargs(&args, "-oClearAllForwardings yes");          addargs(&args, "-oClearAllForwardings yes");
   
         fflag = tflag = 0;          fflag = tflag = 0;
Line 353 
Line 354 
                 src = colon(argv[i]);                  src = colon(argv[i]);
                 if (src) {      /* remote to remote */                  if (src) {      /* remote to remote */
                         static char *ssh_options =                          static char *ssh_options =
                             "-x -o'ClearAllForwardings yes'";                              "-x -o'FallBackToRsh no' "
                               "-o'ClearAllForwardings yes'";
                         *src++ = 0;                          *src++ = 0;
                         if (*src == 0)                          if (*src == 0)
                                 src = ".";                                  src = ".";
Line 754 
Line 756 
                                 cursize = need;                                  cursize = need;
                         }                          }
                         (void) snprintf(namebuf, need, "%s%s%s", targ,                          (void) snprintf(namebuf, need, "%s%s%s", targ,
                             strcmp(targ, "/") ? "/" : "", cp);                              *targ ? "/" : "", cp);
                         np = namebuf;                          np = namebuf;
                 } else                  } else
                         np = targ;                          np = targ;
Line 929 
Line 931 
 usage(void)  usage(void)
 {  {
         (void) fprintf(stderr,          (void) fprintf(stderr,
             "usage: scp [-pqrvBC46] [-F config] [-S program] [-P port]\n"              "usage: scp [-pqrvBC46] [-F config] [-S ssh] [-P port] [-c cipher] [-i identity]\n"
             "           [-c cipher] [-i identity] [-o option]\n"              "           [-o option] f1 f2\n"
             "           [[user@]host1:]file1 [...] [[user@]host2:]file2\n");              "   or: scp [options] f1 ... fn directory\n");
         exit(1);          exit(1);
 }  }
   
Line 1071 
Line 1073 
         off_t cursize, abbrevsize;          off_t cursize, abbrevsize;
         double elapsed;          double elapsed;
         int ratio, barlength, i, remaining;          int ratio, barlength, i, remaining;
         char buf[512];          char buf[256];
   
         if (flag == -1) {          if (flag == -1) {
                 (void) gettimeofday(&start, (struct timezone *) 0);                  (void) gettimeofday(&start, (struct timezone *) 0);
Line 1097 
Line 1099 
                 i = barlength * ratio / 100;                  i = barlength * ratio / 100;
                 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),                  snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
                     "|%.*s%*s|", i,                      "|%.*s%*s|", i,
                     "*******************************************************"                      "***************************************"
                     "*******************************************************"                      "***************************************"
                     "*******************************************************"                      "***************************************"
                     "*******************************************************"                      "***************************************",
                     "*******************************************************"  
                     "*******************************************************"  
                     "*******************************************************",  
                     barlength - i, "");                      barlength - i, "");
         }          }
         i = 0;          i = 0;

Legend:
Removed from v.1.85.2.3  
changed lines
  Added in v.1.86