chiark / gitweb /
path-util: Add hidden suffixes for ucf (#3131)
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 27 Apr 2016 07:58:42 +0000 (09:58 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
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

index 72c1b016d33cc55f3317232e7f0556d1b42fddc9..5f4252f48cfe7d86ece820d592ed21dd336e05bd 100644 (file)
@@ -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");
 }