diff options
-rw-r--r-- | session.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1251,10 +1251,10 @@ do_nologin(struct passwd *pw) | |||
1251 | /* /etc/nologin exists. Print its contents if we can and exit. */ | 1251 | /* /etc/nologin exists. Print its contents if we can and exit. */ |
1252 | logit("User %.100s not allowed because %s exists", pw->pw_name, nl); | 1252 | logit("User %.100s not allowed because %s exists", pw->pw_name, nl); |
1253 | if ((f = fopen(nl, "r")) != NULL) { | 1253 | if ((f = fopen(nl, "r")) != NULL) { |
1254 | while (fgets(buf, sizeof(buf), f)) | 1254 | while (fgets(buf, sizeof(buf), f)) |
1255 | fputs(buf, stderr); | 1255 | fputs(buf, stderr); |
1256 | fclose(f); | 1256 | fclose(f); |
1257 | } | 1257 | } |
1258 | exit(254); | 1258 | exit(254); |
1259 | } | 1259 | } |
1260 | 1260 | ||