chiark / gitweb /
systemctl: refuse to edit runtime dropins when they already exist in /etc
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Dec 2014 04:01:05 +0000 (23:01 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Dec 2014 05:30:34 +0000 (00:30 -0500)
commitbc854dc7cd051e1e5a6ebcca8084b07168051c6c
tree6281cc6f6a9adf4e6f67b1f8660031156ddf6fe4
parentad2a035820e0fca29e49816f735bec1fcdabf82a
systemctl: refuse to edit runtime dropins when they already exist in /etc

The check for existing unit files and dropins is unified.

path_join() is updated to not insert duplicate separators.
src/shared/path-util.c
src/systemctl/systemctl.c
src/test/test-path-util.c