From: Peter Palfrader Date: Sun, 10 Mar 2019 16:57:04 +0000 (+0100) Subject: dsa-check-backuppg: Ignore lost+found directory X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=36efe3523f59451e3f4925c52e3c8f4287f78908;hp=8527cb0cd77a044a7e7a025213b18e5a710766d3;p=mirror%2Fdsa-nagios.git dsa-check-backuppg: Ignore lost+found directory --- 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: