Relevant BUGIDs: Red Hat bz 168790

Purpose of commit: bugfix

Commit summary:
---------------
pam_limits: Fix regression from RLIMIT_NICE support (wrong limit
values for other limits are applied) patch by Anton Guda
This commit is contained in:
Tomas Mraz 2005-09-20 12:17:01 +00:00
parent 0c3724a3e1
commit ed7ae465dd
2 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,8 @@ bug report - outstanding bugs are listed here:
PAM modules (kukuk).
* pam_tally, pam_time, pam_userdb: use pam_syslog and pam_prompt (ldv)
* pam_issue: major cleanup (ldv)
* pam_limits: Fix regression from RLIMIT_NICE support (wrong limit
values for other limits are applied) patch by Anton Guda
0.80: Wed Jul 13 13:23:20 CEST 2005
* pam_tally: test for NULL data before dereferencing them (t8m)

View File

@ -380,6 +380,7 @@ process_limit (const pam_handle_t *pamh, int source, const char *lim_type,
case RLIMIT_AS:
if (rlimit_value != RLIM_INFINITY)
rlimit_value *= 1024;
break;
#ifdef RLIMIT_NICE
case RLIMIT_NICE:
if (int_value > 19)