systemctl: refuse to edit runtime dropins when they already exist in /etc

System Internals / systemd - Zbigniew Jędrzejewski-Szmek [in.waw.pl] - 15 December 2014 23:30 UTC

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


  • Share