From 61248874b27d3f004fff2ded43cae24e7f24da20 Mon Sep 17 00:00:00 2001 From: Jan Rekorajski Date: Tue, 7 May 2002 17:17:03 +0000 Subject: [PATCH] Relevant BUGIDs: 533664 Purpose of commit: bugfix Commit summary: --------------- keep well know behaviour of maxlogins default ('*') limit --- CHANGELOG | 2 ++ modules/pam_limits/pam_limits.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f10e7a1f..5eeedff0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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; } -- 2.40.0