[BACK]Return to ruserpass.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/ruserpass.c between version 1.10 and 1.11

version 1.10, 1997/09/05 00:02:30 version 1.11, 1998/03/30 06:59:35
Line 149 
Line 149 
                 while ((t = token()) && t != MACH && t != DEFAULT) switch(t) {                  while ((t = token()) && t != MACH && t != DEFAULT) switch(t) {
   
                 case LOGIN:                  case LOGIN:
                         if (token())                          if (token()) {
                                 if (*aname == 0) {                                  if (*aname == 0) {
                                         *aname = malloc((unsigned)                                          *aname = malloc((unsigned)
                                             strlen(tokval) + 1);                                              strlen(tokval) + 1);
Line 158 
Line 158 
                                         if (strcmp(*aname, tokval))                                          if (strcmp(*aname, tokval))
                                                 goto next;                                                  goto next;
                                 }                                  }
                           }
                         break;                          break;
                 case PASSWD:                  case PASSWD:
                         if ((*aname == NULL || strcmp(*aname, "anonymous")) &&                          if ((*aname == NULL || strcmp(*aname, "anonymous")) &&

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11