]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: never check inhibitors if -H or -M are used (#3781)
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Jul 2016 15:39:21 +0000 (17:39 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2016 15:39:21 +0000 (17:39 +0200)
commite08ab37902bbd6e46ad1365f8ffa87fd700683e2
treebbe42451d70e9f3aeccf85031442bc95c21ab218
parent8a18507c55ea89451c32ae10d4cc11acc828b279
systemctl: never check inhibitors if -H or -M are used (#3781)

Don't check inhibitors when operating remotely. The interactivity inhibitors
imply can#t be provided anyway, and the current code checks for local sessions
directly, via various sd_session_xyz() APIs, hence bypass it entirely if we
operate on remote systems.

Fixes: #3476
src/systemctl/systemctl.c