summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-05-31 11:20:11 +1000
committerDamien Miller <djm@mindrot.org>2000-05-31 11:20:11 +1000
commit2f6a0ad191af2e0e67c66bdc5dfc84d9a97bf12c (patch)
tree3b25cc3ba9ed2ae288e33ee8dee5042cc4734020 /auth.c
parent03934f2eefc991f2a0be253be8869cf8f39758bc (diff)
downloadopenssh-git-2f6a0ad191af2e0e67c66bdc5dfc84d9a97bf12c.tar.gz
- Cleanup of auth.c, login.c and fake-*
- Cleanup of auth-pam.c, save and print "account expired" error messages
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth.c b/auth.c
index 0a58df58..685b8bb3 100644
--- a/auth.c
+++ b/auth.c
@@ -121,17 +121,17 @@ allowed_user(struct passwd * pw)
}
#ifdef WITH_AIXAUTHENTICATE
- if (loginrestrictions(pw->pw_name,S_RLOGIN,NULL,&loginmsg) != 0) {
+ if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0) {
if (loginmsg && *loginmsg) {
/* Remove embedded newlines (if any) */
char *p;
- for (p = loginmsg; *p; p++)
+ for (p = loginmsg; *p; p++) {
if (*p == '\n')
*p = ' ';
+ }
/* Remove trailing newline */
*--p = '\0';
- log("Login restricted for %s: %.100s",
- pw->pw_name, loginmsg);
+ log("Login restricted for %s: %.100s", pw->pw_name, loginmsg);
}
return 0;
}