diff options
-rw-r--r-- | modules/pam_limits/pam_limits.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |