dsa-update-unowned-file-status: Use -fstype proc rather than hard coding /proc in...
[mirror/dsa-nagios.git] / dsa-nagios-checks / sbin / dsa-update-unowned-file-status
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"