mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 01:55:22 +03:00
parent
febe81313e
commit
99416b6d4e
@ -172,7 +172,8 @@ static int handle_action_execute(
|
||||
inhibit_operation = handle_action_lookup(handle)->inhibit_what;
|
||||
|
||||
/* If the actual operation is inhibited, warn and fail */
|
||||
if (!ignore_inhibited &&
|
||||
if (inhibit_what_is_valid(inhibit_operation) &&
|
||||
!ignore_inhibited &&
|
||||
manager_is_inhibited(m, inhibit_operation, INHIBIT_BLOCK, NULL, false, false, 0, &offending)) {
|
||||
_cleanup_free_ char *comm = NULL, *u = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user