]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: certainly ignore ENOENT in checking inhibitors
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Jan 2025 12:15:02 +0000 (21:15 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Jan 2025 14:15:09 +0000 (14:15 +0000)
commit66f379b63ddac8c72b9130df86a82b68ec42c119
tree557d20538619f9c525629c0d5cbb14101dbf4d80
parent76d80cc34331b0cefd354ea9de70e9bbb46550a0
systemctl: certainly ignore ENOENT in checking inhibitors

Fixes a bug caused by 804874d26ac73e0af07c4c5d7165c95372f03f6d.

Follow-up for 084f361b509cbffe7ffd5ab6085469f76f799fe5 and
a1417e5563acb73a0accdc12b3af91e4ec1c7f46.

Note, ERRNO_IS_NEG_DISCONNECT() includes ENONET rather than ENOENT...
So, ENOENT needs to be handled explicitly.

Fixes #35757 and #35806.
src/systemctl/systemctl-logind.c