summaryrefslogtreecommitdiff
path: root/modules/pam_limits/pam_limits.c
diff options
context:
space:
mode:
authorJan Rekorajski <baggins@sith.mimuw.edu.pl>2002-05-07 17:17:03 +0000
committerJan Rekorajski <baggins@sith.mimuw.edu.pl>2002-05-07 17:17:03 +0000
commit61248874b27d3f004fff2ded43cae24e7f24da20 (patch)
treed96778cae7e02a30dffc0ab66fda286cb3e9bd79 /modules/pam_limits/pam_limits.c
parente6f788bc14b0aa2879a446bdf745c075167f816f (diff)
Relevant BUGIDs: 533664
Purpose of commit: bugfix Commit summary: --------------- keep well know behaviour of maxlogins default ('*') limit
Diffstat (limited to 'modules/pam_limits/pam_limits.c')
-rw-r--r--modules/pam_limits/pam_limits.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c
index dde96701..841b1a37 100644
--- a/modules/pam_limits/pam_limits.c
+++ b/modules/pam_limits/pam_limits.c
@@ -243,7 +243,8 @@ static int check_logins(const char *name, int limit, int ctrl,
continue;
}
if (!pl->flag_numsyslogins) {
- if ((pl->login_limit_def == LIMITS_DEF_USER)
+ if (((pl->login_limit_def == LIMITS_DEF_USER) ||
+ (pl->login_limit_def == LIMITS_DEF_DEFAULT))
&& strncmp(name, ut->UT_USER, sizeof(ut->UT_USER)) != 0) {
continue;
}