summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-01-07 17:38:58 +1100
committerDamien Miller <djm@mindrot.org>2003-01-07 17:38:58 +1100
commitf25c18d7e8810ad94c7d2030cb0427e22745531e (patch)
tree11ab9ede077fac71dfb936356a0f793135200c17 /session.c
parentb93addb6d667b36bdbb298b8b3c581c1738c0c9f (diff)
- (djm) Bug #178: On AIX /etc/nologin wasnt't shown to users. Fix from
Ralf.Wenk@fh-karlsruhe.de and dtucker@zip.com.au
Diffstat (limited to 'session.c')
-rw-r--r--session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/session.c b/session.c
index 9832d7a8..c16cdcc1 100644
--- a/session.c
+++ b/session.c
@@ -1194,6 +1194,7 @@ do_nologin(struct passwd *pw)
while (fgets(buf, sizeof(buf), f))
fputs(buf, stderr);
fclose(f);
+ fflush(NULL);
exit(254);
}
}