[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.24 and 1.25

version 1.24, 2000/01/04 16:57:16 version 1.25, 2000/01/24 22:11:20
Line 1060 
Line 1060 
                 c = *cp;                  c = *cp;
                 if (c & 0200)                  if (c & 0200)
                         goto bad;                          goto bad;
                 if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-')                  if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c != '.')
                         goto bad;                          goto bad;
         } while (*++cp);          } while (*++cp);
         return (1);          return (1);
   
 bad:    fprintf(stderr, "%s: invalid user name", cp0);  bad:    fprintf(stderr, "%s: invalid user name\n", cp0);
         return (0);          return (0);
 }  }
   

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25