From: Martin Pitt Date: Wed, 27 Apr 2016 07:58:42 +0000 (+0200) Subject: path-util: Add hidden suffixes for ucf (#3131) X-Git-Tag: v231.3~173 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=6b05aab633fa55aa3070f186869d8fa219be2f38;ds=sidebyside path-util: Add hidden suffixes for ucf (#3131) ucf is a standard Debian helper for managing configuration file upgrades which need more interaction or elaborate merging than conffiles managed by dpkg. Ignore its temporary and backup files similarly to the *.dpkg-* ones to avoid creating units for them in generators. https://bugs.debian.org/775903 --- diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 72c1b016d..5f4252f48 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -780,6 +780,9 @@ bool hidden_file_allow_backup(const char *filename) { endswith(filename, ".dpkg-bak") || endswith(filename, ".dpkg-backup") || endswith(filename, ".dpkg-remove") || + endswith(filename, ".ucf-new") || + endswith(filename, ".ucf-old") || + endswith(filename, ".ucf-dist") || endswith(filename, ".swp"); }