summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-04-27 09:58:42 +0200
committerDaniel Mack <github@zonque.org>2016-04-27 09:58:42 +0200
commit739d638a6e4f214217f60708911db6028a87a48c (patch)
treec7b69df30fc7b3326e5339f377773b3aea72d34b
parent8eb851711fd166024297c425e9261200c36f489d (diff)
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
-rw-r--r--src/basic/path-util.c3
1 files changed, 3 insertions, 0 deletions
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");
}