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

Diff for /src/usr.bin/ssh/auth2.c between version 1.41 and 1.42

version 1.41, 2001/02/12 16:16:23 version 1.42, 2001/02/13 22:49:40
Line 185 
Line 185 
         if (authctxt->attempt++ == 0) {          if (authctxt->attempt++ == 0) {
                 /* setup auth context */                  /* setup auth context */
                 struct passwd *pw = NULL;                  struct passwd *pw = NULL;
                 setproctitle("%s", user);  
                 pw = getpwnam(user);                  pw = getpwnam(user);
                 if (pw && allowed_user(pw) && strcmp(service, "ssh-connection")==0) {                  if (pw && allowed_user(pw) && strcmp(service, "ssh-connection")==0) {
                         authctxt->pw = pwcopy(pw);                          authctxt->pw = pwcopy(pw);
Line 194 
Line 193 
                 } else {                  } else {
                         log("input_userauth_request: illegal user %s", user);                          log("input_userauth_request: illegal user %s", user);
                 }                  }
                   setproctitle("%s", pw ? user : "unknown");
                 authctxt->user = xstrdup(user);                  authctxt->user = xstrdup(user);
                 authctxt->service = xstrdup(service);                  authctxt->service = xstrdup(service);
                 authctxt->style = style ? xstrdup(style) : NULL; /* currently unused */                  authctxt->style = style ? xstrdup(style) : NULL; /* currently unused */

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42