From: Martin Pitt Date: Wed, 21 Jan 2015 14:26:13 +0000 (+0100) Subject: util: Add some missing hidden_file() suffixes X-Git-Tag: v219~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7088e4999f2e5dd33259948c806f4e2706e77ce;p=thirdparty%2Fsystemd.git util: Add some missing hidden_file() suffixes dpkg itself also uses *.dpkg-dist, while .dpkg-{bak,backup,remove} are being used by dpkg-maintscript-helper. --- diff --git a/src/shared/util.c b/src/shared/util.c index 9392477787b..3aa952fd77a 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -1539,6 +1539,10 @@ _pure_ static bool hidden_file_allow_backup(const char *filename) { endswith(filename, ".dpkg-old") || endswith(filename, ".dpkg-new") || endswith(filename, ".dpkg-tmp") || + endswith(filename, ".dpkg-dist") || + endswith(filename, ".dpkg-bak") || + endswith(filename, ".dpkg-backup") || + endswith(filename, ".dpkg-remove") || endswith(filename, ".swp"); }