* libmisc/limits.c: Fix the format to match the unsigned long
variable in argument. * libmisc/utmp.c: Fix tests. tmptty is a variable stack. ut_host is an array of the ut structure. None of them can be NULL.
This commit is contained in:
@@ -167,8 +167,9 @@ static int check_logins (const char *name, const char *maxlogins)
|
||||
* includes the user who is currently trying to log in.
|
||||
*/
|
||||
if (count > limit) {
|
||||
SYSLOG ((LOG_WARN, "Too many logins (max %d) for %s\n",
|
||||
limit, name));
|
||||
SYSLOG ((LOG_WARN,
|
||||
"Too many logins (max %lu) for %s\n",
|
||||
limit, name));
|
||||
return LOGIN_ERROR_LOGIN;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user