X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=dsa-nagios-checks%2Fsbin%2Fdsa-update-unowned-file-status;h=1caaaebe2a8f11e1f97bcbf4a025ee19b01d5252;hb=8174576c2ce2f8c339ff8104ee0d7e1bcfcb86bf;hp=45a8f89169be8b4b451266cd59c3fca60962a8fa;hpb=0cb2c0a0cbac720bdfd659e87c205016caabdbd8;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/sbin/dsa-update-unowned-file-status b/dsa-nagios-checks/sbin/dsa-update-unowned-file-status index 45a8f89..1caaaeb 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 / -fstype proc -prune -o -nouser | head -n "$CUTOFF" > "$tmp" +$prefix find / -ignore_readdir_race \( -fstype proc -o -fstype sysfs \) -prune -o -nouser | head -n "$CUTOFF" > "$tmp" if [ -s "$tmp" ]; then echo "WARN"