diff options
author | Tomas Mraz <tm@t8m.info> | 2004-11-04 08:12:38 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2004-11-04 08:12:38 +0000 |
commit | e8160481bd6ff32fe20af54f3832eefc2d007aff (patch) | |
tree | 673c4792a52008e7d8c2fa5a892de7f68aeeb637 /modules/pam_limits | |
parent | 49774d92490e907d6f0f698b90a8a218adedebf1 (diff) | |
download | pam-e8160481bd6ff32fe20af54f3832eefc2d007aff.tar.gz pam-e8160481bd6ff32fe20af54f3832eefc2d007aff.tar.bz2 pam-e8160481bd6ff32fe20af54f3832eefc2d007aff.zip |
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
Diffstat (limited to 'modules/pam_limits')
-rw-r--r-- | modules/pam_limits/pam_limits.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |