[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.77 and 1.78

version 1.77, 2001/07/18 16:45:52 version 1.78, 2001/07/27 17:26:16
Line 129 
Line 129 
         int pin[2], pout[2], reserved[2];          int pin[2], pout[2], reserved[2];
   
         if (verbose_mode)          if (verbose_mode)
                 fprintf(stderr, "Executing: program %s host %s, user %s, command %s\n",                  fprintf(stderr,
                     ssh_program, host, remuser ? remuser : "(unspecified)", cmd);                      "Executing: program %s host %s, user %s, command %s\n",
                       ssh_program, host,
                       remuser ? remuser : "(unspecified)", cmd);
   
         /*          /*
          * Reserve two descriptors so that the real pipes won't get           * Reserve two descriptors so that the real pipes won't get
Line 803 
Line 805 
                         count += amt;                          count += amt;
                         do {                          do {
                                 j = read(remin, cp, amt);                                  j = read(remin, cp, amt);
                                 if (j == -1 && (errno == EINTR || errno == EAGAIN)) {                                  if (j == -1 && (errno == EINTR ||
                                       errno == EAGAIN)) {
                                         continue;                                          continue;
                                 } else if (j <= 0) {                                  } else if (j <= 0) {
                                         run_err("%s", j ? strerror(errno) :                                          run_err("%s", j ? strerror(errno) :
Line 1092 
Line 1095 
                 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.77  
changed lines
  Added in v.1.78