diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-04-27 09:58:42 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:12:58 +0200 |
commit | 6b05aab633fa55aa3070f186869d8fa219be2f38 (patch) | |
tree | dbeae38a28f7b07d785052db16c8f23bcfd14bb3 /src | |
parent | 5b4444a29f7f48682168332416b30a97ac3d22dd (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
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/path-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); } |