diff options
author | Jan Rekorajski <baggins@sith.mimuw.edu.pl> | 2002-05-07 17:17:03 +0000 |
---|---|---|
committer | Jan Rekorajski <baggins@sith.mimuw.edu.pl> | 2002-05-07 17:17:03 +0000 |
commit | 61248874b27d3f004fff2ded43cae24e7f24da20 (patch) | |
tree | d96778cae7e02a30dffc0ab66fda286cb3e9bd79 | |
parent | e6f788bc14b0aa2879a446bdf745c075167f816f (diff) | |
download | pam-61248874b27d3f004fff2ded43cae24e7f24da20.tar.gz pam-61248874b27d3f004fff2ded43cae24e7f24da20.tar.bz2 pam-61248874b27d3f004fff2ded43cae24e7f24da20.zip |
Relevant BUGIDs: 533664
Purpose of commit: bugfix
Commit summary:
---------------
keep well know behaviour of maxlogins default ('*') limit
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | modules/pam_limits/pam_limits.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -55,6 +55,8 @@ bug report - outstanding bugs are listed here: 0.76: please submit patches for this section with actual code/doc patches! +* pam_limits: keep well know behaviour of maxlogins default ('*') limit + (Bug 533664 - baggins) * pam_unix: more from Nalin log password changes (Bug 517743 - agmorgan) * pam_limits: make it use the priority value specified in config (bug 530428 - baggins) 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; } |