dsa-update-unowned-file-status: Use -fstype proc rather than hard coding /proc in...
authorTollef Fog Heen <tfheen@err.no>
Mon, 27 Feb 2012 15:31:46 +0000 (16:31 +0100)
committerTollef Fog Heen <tfheen@err.no>
Mon, 27 Feb 2012 15:31:46 +0000 (16:31 +0100)
dsa-nagios-checks/debian/changelog
dsa-nagios-checks/sbin/dsa-update-unowned-file-status

index db97d58..67d7459 100644 (file)
@@ -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 <weasel@debian.org>  Sat, 25 Feb 2012 13:31:52 +0100
+ -- Tollef Fog Heen <tfheen@debian.org>  Mon, 27 Feb 2012 16:29:57 +0100
 
 dsa-nagios-checks (92.1) unstable; urgency=low
 
index 29eb7ef..45a8f89 100755 (executable)
@@ -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"