]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: check if unit is masked in unit_find_paths()
authorgvenugo3 <gvenugo3@asu.edu>
Tue, 11 Nov 2025 16:55:59 +0000 (09:55 -0700)
committergvenugo3 <gvenugo3@asu.edu>
Tue, 11 Nov 2025 16:55:59 +0000 (09:55 -0700)
commit423a8ffccc79922b35a3d452f9ca6201fbcfd14d
tree94dd617889e1d9f8e515f63680f6c855a46c65a1
parentcedc98c5811cdd3db55d4277ec85b100196b4a5e
systemctl: check if unit is masked in unit_find_paths()

When operating in client-side mode (force_client_side=true), unit_find_paths()
now checks if the unit file is masked (symlinked to /dev/null or empty) and
returns -ERFKILL, matching the behavior of the server-side path.

This centralizes masked unit detection in one place, making it consistent
across both client-side and server-side operations.
src/systemctl/systemctl-util.c