From 36efe3523f59451e3f4925c52e3c8f4287f78908 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 10 Mar 2019 17:57:04 +0100 Subject: [PATCH] dsa-check-backuppg: Ignore lost+found directory --- dsa-nagios-checks/checks/dsa-check-backuppg | 2 +- dsa-nagios-checks/debian/changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dsa-nagios-checks/checks/dsa-check-backuppg b/dsa-nagios-checks/checks/dsa-check-backuppg index 13e935e..73ac35c 100755 --- a/dsa-nagios-checks/checks/dsa-check-backuppg +++ b/dsa-nagios-checks/checks/dsa-check-backuppg @@ -162,7 +162,7 @@ config = load_conf(options.conffile) os.chdir(config['rootdir']) for dir in os.listdir('.'): - if dir.startswith('.') or dir.endswith('.old'): + if dir.startswith('.') or dir.endswith('.old') or dir == 'lost+found': note_info('IGNORED', dir) continue diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 8aff0ec..4f6c4bb 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -6,6 +6,7 @@ dsa-nagios-checks (117) UNRELEASED; urgency=medium * dsa-check-zone-rrsig-expiration-many: fix use of uninitialized value with unsigned zones. * dsa-check-running-kernel: handle -unsigned packages + * dsa-check-backuppg: Ignore lost+found directory [ Jan Wagner ] * update-apt-statusdir, dsa-update-unowned-file-status: -- 2.20.1