diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-01-21 15:26:13 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-25 16:55:31 -0500 |
commit | 4e716cdeb5d3ec2082ad5b92fc691277a37b4639 (patch) | |
tree | 2830f9d76b0f901f054a4a80c56756a4b09c914e /src/shared/util.c | |
parent | 475b84c01a3a12d052e470e6d99e5e9877f78ba1 (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.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"); } |