From 739d638a6e4f214217f60708911db6028a87a48c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 27 Apr 2016 09:58:42 +0200 Subject: 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 --- src/basic/path-util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/basic/path-util.c b/src/basic/path-util.c index 044a12889d..25aa355397 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -774,6 +774,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"); } -- cgit v1.2.3-54-g00ecf