From 4e716cdeb5d3ec2082ad5b92fc691277a37b4639 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 21 Jan 2015 15:26:13 +0100 Subject: 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. Signed-off-by: Anthony G. Basile --- src/shared/util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/shared/util.c b/src/shared/util.c index 2dbcf9446c..e76325e7c2 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -710,6 +710,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"); } -- cgit v1.2.3-54-g00ecf