mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
pam-systemd: downgrade log message we handle gracefully to LOG_WARNING as per coding style
This commit is contained in:
parent
7adf6ce3ca
commit
29f2057a20
@ -755,7 +755,7 @@ static int apply_user_record_settings(
|
||||
|
||||
if (nice_is_valid(ur->nice_level)) {
|
||||
if (nice(ur->nice_level) < 0)
|
||||
pam_syslog_errno(handle, LOG_ERR, errno,
|
||||
pam_syslog_errno(handle, LOG_WARNING, errno,
|
||||
"Failed to set nice level to %i, ignoring: %m", ur->nice_level);
|
||||
else
|
||||
pam_debug_syslog(handle, debug,
|
||||
@ -763,7 +763,6 @@ static int apply_user_record_settings(
|
||||
}
|
||||
|
||||
for (int rl = 0; rl < _RLIMIT_MAX; rl++) {
|
||||
|
||||
if (!ur->rlimits[rl])
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user