mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
sleep: also log about errno when getenv_bool fails
This commit is contained in:
@@ -603,7 +603,7 @@ static int run(int argc, char *argv[]) {
|
||||
/* Freeze the user sessions */
|
||||
r = getenv_bool("SYSTEMD_SLEEP_FREEZE_USER_SESSIONS");
|
||||
if (r < 0 && r != -ENXIO)
|
||||
log_warning_errno(r, "Cannot parse value of $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS, ignoring.");
|
||||
log_warning_errno(r, "Cannot parse value of $SYSTEMD_SLEEP_FREEZE_USER_SESSIONS, ignoring: %m");
|
||||
if (r != 0)
|
||||
(void) unit_freezer_new_freeze(SPECIAL_USER_SLICE, &user_slice_freezer);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user