The check for existing unit files and dropins is unified.
path_join() is updated to not insert duplicate separators.
bc854dc systemctl: refuse to edit runtime dropins when they already exist in /etc
src/shared/path-util.c | 6 +-
src/systemctl/systemctl.c | 139 ++++++++++++---------------------------------
src/test/test-path-util.c | 4 +-
3 files changed, 41 insertions(+), 108 deletions(-)
Upstream: github.com