systemctl: refuse to edit masked units (#8602)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Mar 2018 15:25:04 +0000 (17:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Mar 2018 15:25:04 +0000 (17:25 +0200)
commit9d9dd746d461e4524fb3644b20b8138448d666f2
tree4feb5b776633460f413148e93712de6abd975579
parenta7e4861c7471bfe563078d11acbcecbf2d755462
systemctl: refuse to edit masked units (#8602)

Note: in check_triggering_units 'path' will be allocated twice. This is a
conscious choice, this way the implementation is simpler and not worth
optimizing.

Fixes #8519.
src/systemctl/systemctl.c