From 6b05aab633fa55aa3070f186869d8fa219be2f38 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 27 Apr 2016 09:58:42 +0200 Subject: [PATCH] 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 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"); } -- 2.30.2