summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
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 0a58df58b..685b8bb35 100644
--- a/auth.c
+++ b/auth.c
@@ -121,17 +121,17 @@ allowed_user(struct passwd * pw)
121 } 121 }
122 122
123#ifdef WITH_AIXAUTHENTICATE 123#ifdef WITH_AIXAUTHENTICATE
124 if (loginrestrictions(pw->pw_name,S_RLOGIN,NULL,&loginmsg) != 0) { 124 if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0) {
125 if (loginmsg && *loginmsg) { 125 if (loginmsg && *loginmsg) {
126 /* Remove embedded newlines (if any) */ 126 /* Remove embedded newlines (if any) */
127 char *p; 127 char *p;
128 for (p = loginmsg; *p; p++) 128 for (p = loginmsg; *p; p++) {
129 if (*p == '\n') 129 if (*p == '\n')
130 *p = ' '; 130 *p = ' ';
131 }
131 /* Remove trailing newline */ 132 /* Remove trailing newline */
132 *--p = '\0'; 133 *--p = '\0';
133 log("Login restricted for %s: %.100s", 134 log("Login restricted for %s: %.100s", pw->pw_name, loginmsg);
134 pw->pw_name, loginmsg);
135 } 135 }
136 return 0; 136 return 0;
137 } 137 }