summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-01-21 15:26:13 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-01-22 10:50:25 -0500
commit1fe702291728a81388305a797329e5ac4956b8c4 (patch)
treee659eba799156a67256ebddc1324b60f94562229
parentcd1694328b8e947875bdd7a7356fbf798a52e18f (diff)
downloadsystemd-1fe702291728a81388305a797329e5ac4956b8c4.tar.gz
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. (cherry picked from commit c7088e4999f2e5dd33259948c806f4e2706e77ce)
-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 688aa8bc13..6f22f2b04e 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -1441,6 +1441,10 @@ _pure_ static bool ignore_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");
}