diff options
author | Tomas Mraz <tm@t8m.info> | 2005-09-20 12:17:01 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-09-20 12:17:01 +0000 |
commit | ed7ae465dd343f197990db50cdbdd6aaee7f8eb9 (patch) | |
tree | 090b476a2cb6bd5a9ac1f11322898b3171d52760 | |
parent | 0c3724a3e14b7c95f47f2f083ebc5c00dd5c2afe (diff) | |
download | pam-ed7ae465dd343f197990db50cdbdd6aaee7f8eb9.tar.gz pam-ed7ae465dd343f197990db50cdbdd6aaee7f8eb9.tar.bz2 pam-ed7ae465dd343f197990db50cdbdd6aaee7f8eb9.zip |
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
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | modules/pam_limits/pam_limits.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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) diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c index ffd51e78..d8a69449 100644 --- a/modules/pam_limits/pam_limits.c +++ b/modules/pam_limits/pam_limits.c @@ -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) |