From: Tollef Fog Heen Date: Mon, 27 Feb 2012 15:31:46 +0000 (+0100) Subject: dsa-update-unowned-file-status: Use -fstype proc rather than hard coding /proc in... X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=0cb2c0a0cbac720bdfd659e87c205016caabdbd8;p=mirror%2Fdsa-nagios.git dsa-update-unowned-file-status: Use -fstype proc rather than hard coding /proc in order to match procfs in chroots too. --- 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"