summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2004-11-04 08:12:38 +0000
committerTomas Mraz <tm@t8m.info>2004-11-04 08:12:38 +0000
commite8160481bd6ff32fe20af54f3832eefc2d007aff (patch)
tree673c4792a52008e7d8c2fa5a892de7f68aeeb637 /modules
parent49774d92490e907d6f0f698b90a8a218adedebf1 (diff)
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')
-rw-r--r--modules/pam_limits/pam_limits.c4
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);