diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-19 17:30:53 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-02-19 17:42:18 -0500 |
commit | b3734d9841b1540c8cc81a4eca998911871a15ad (patch) | |
tree | 35e30f9d7994387afb6dba113b3df0a87711f189 /sysctl.d | |
parent | b74df547a90a794ca75eea99238b9ae14a562720 (diff) |
systemctl: fix editing of units with no fragment
"systemctl --user edit --force --full tmp.mount" would crash, when we'd do
basename(NULL). Fix this by creating a new unit or a new override even if
not path is found.
Tested with:
systemctl --user edit --force --full tmp.mount
systemctl --user edit --force tmp.mount
systemctl --user edit foo@.service
systemctl --user edit foo@bar.service
systemctl --user edit --full foo@.service
systemctl --user edit --full foo@bar.service
Diffstat (limited to 'sysctl.d')
0 files changed, 0 insertions, 0 deletions