From 0cb2c0a0cbac720bdfd659e87c205016caabdbd8 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 27 Feb 2012 16:31:46 +0100 Subject: [PATCH] dsa-update-unowned-file-status: Use -fstype proc rather than hard coding /proc in order to match procfs in chroots too. --- dsa-nagios-checks/debian/changelog | 6 ++++-- dsa-nagios-checks/sbin/dsa-update-unowned-file-status | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index db97d58..67d7459 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -1,8 +1,10 @@ dsa-nagios-checks (9X) Xnstable; urgency=low - * + [ Tollef Fog Heen ] + * dsa-update-unowned-file-status: Use -fstype proc rather than hard + coding /proc in order to match procfs in chroots too. - -- Peter Palfrader Sat, 25 Feb 2012 13:31:52 +0100 + -- Tollef Fog Heen Mon, 27 Feb 2012 16:29:57 +0100 dsa-nagios-checks (92.1) unstable; urgency=low diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status index 29eb7ef..45a8f89 100755 --- a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status +++ b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status @@ -31,7 +31,7 @@ if command -v ionice >/dev/null 2>&1; then prefix="ionice -c 3 -t" # idle priority, ignore errors fi -$prefix find / -path /proc -prune -o -nouser | head -n "$CUTOFF" > "$tmp" +$prefix find / -fstype proc -prune -o -nouser | head -n "$CUTOFF" > "$tmp" if [ -s "$tmp" ]; then echo "WARN" -- 2.20.1