summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-01-21 15:26:13 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2015-01-21 15:29:37 +0100
commitc7088e4999f2e5dd33259948c806f4e2706e77ce (patch)
tree0dd466db4ab1cf55fbb0e9210fbf6ff58fe69d27 /src/shared
parent29e0e6d8c1f7f648b7c998880d034eaa3e58c53a (diff)
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.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 9392477787..3aa952fd77 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");
}