[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.197 and 1.198

version 1.197, 2018/06/01 04:31:48 version 1.198, 2018/11/16 03:03:10
Line 1083 
Line 1083 
                         SCREWUP("size out of range");                          SCREWUP("size out of range");
                 size = (off_t)ull;                  size = (off_t)ull;
   
                 if ((strchr(cp, '/') != NULL) || (strcmp(cp, "..") == 0)) {                  if (*cp == '\0' || strchr(cp, '/') != NULL ||
                       strcmp(cp, ".") == 0 || strcmp(cp, "..") == 0) {
                         run_err("error: unexpected filename: %s", cp);                          run_err("error: unexpected filename: %s", cp);
                         exit(1);                          exit(1);
                 }                  }

Legend:
Removed from v.1.197  
changed lines
  Added in v.1.198