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

Diff for /src/usr.bin/ssh/session.c between version 1.249 and 1.250

version 1.249, 2009/11/20 00:15:41 version 1.250, 2010/01/12 01:31:05
Line 1105 
Line 1105 
         if (!login_getcapbool(lc, "ignorenologin", 0) && pw->pw_uid)          if (!login_getcapbool(lc, "ignorenologin", 0) && pw->pw_uid)
                 f = fopen(login_getcapstr(lc, "nologin", _PATH_NOLOGIN,                  f = fopen(login_getcapstr(lc, "nologin", _PATH_NOLOGIN,
                     _PATH_NOLOGIN), "r");                      _PATH_NOLOGIN), "r");
         if (f) {          if (f != NULL || errno == EPERM) {
                 /* /etc/nologin exists.  Print its contents and exit. */                  /* /etc/nologin exists.  Print its contents and exit. */
                 logit("User %.100s not allowed because %s exists",                  logit("User %.100s not allowed because %s exists",
                     pw->pw_name, _PATH_NOLOGIN);                      pw->pw_name, _PATH_NOLOGIN);
                   if (f == NULL)
                           exit(254);
                 while (fgets(buf, sizeof(buf), f))                  while (fgets(buf, sizeof(buf), f))
                         fputs(buf, stderr);                          fputs(buf, stderr);
                 fclose(f);                  fclose(f);

Legend:
Removed from v.1.249  
changed lines
  Added in v.1.250