From c7088e4999f2e5dd33259948c806f4e2706e77ce Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 21 Jan 2015 15:26:13 +0100 Subject: [PATCH] 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. --- src/shared/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shared/util.c b/src/shared/util.c index 939247778..3aa952fd7 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"); } -- 2.30.2