From e8160481bd6ff32fe20af54f3832eefc2d007aff Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 4 Nov 2004 08:12:38 +0000 Subject: Relevant BUGIDs: Purpose of commit: bugfix Commit summary: --------------- Revert the change in previous pam_limits.c commit it's already compensated by count=1 assignment --- modules/pam_limits/pam_limits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pam_limits/pam_limits.c') diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c index 66eae8e9..4354d3e1 100644 --- a/modules/pam_limits/pam_limits.c +++ b/modules/pam_limits/pam_limits.c @@ -207,12 +207,12 @@ check_logins (pam_handle_t *pamh, const char *name, int limit, int ctrl, continue; } } - if (++count >= limit) { + if (++count > limit) { break; } } endutent(); - if (count >= limit) { + if (count > limit) { if (name) { _pam_log(LOG_WARNING, "Too many logins (max %d) for %s", limit, name); -- cgit v1.2.3