From f37312023650c72a66ec372abf29b52171479fe9 Mon Sep 17 00:00:00 2001 From: Jan Rekorajski Date: Fri, 15 Mar 2002 19:15:16 +0000 Subject: [PATCH] Relevant BUGIDs: 530428 Purpose of commit: bugfix Commit summary: --------------- pam_limits didn't the priority value specified in config. --- modules/pam_limits/pam_limits.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c index f85c5f05..dde96701 100644 --- a/modules/pam_limits/pam_limits.c +++ b/modules/pam_limits/pam_limits.c @@ -419,7 +419,9 @@ static void process_limit(int source, const char *lim_type, } else { /* recent kernels support negative priority limits (=raise priority) */ - if (limit_item != LIMIT_PRI) { + if (limit_item == LIMIT_PRI) { + pl->priority = limit_value; + } else { if (pl->login_limit_def < source) { return; } else { -- 2.40.0