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

Diff for /src/usr.bin/login/login.c between version 1.69 and 1.70

version 1.69, 2017/12/08 17:04:15 version 1.70, 2018/08/15 19:38:47
Line 405 
Line 405 
                 if ((instance = strchr(username, '/')) != NULL) {                  if ((instance = strchr(username, '/')) != NULL) {
                         if (strncmp(instance + 1, "root", 4) == 0)                          if (strncmp(instance + 1, "root", 4) == 0)
                                 rootlogin = 1;                                  rootlogin = 1;
                         *instance++ = '\0';                          *instance = '\0';
                 } else                  }
                         instance = "";  
   
                 if (strlen(username) > UT_NAMESIZE)                  if (strlen(username) > UT_NAMESIZE)
                         username[UT_NAMESIZE] = '\0';                          username[UT_NAMESIZE] = '\0';

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70