# /etc/sudoers.d \
# /var/lib/{sasl,sudo,net-snmp,udisks{,2},NetworkManager} \
# /var/log \
+# /usr/lib/pkgusr \
# /usr/share/polkit-1/rules.d \
# /var/tmp \
-# /var/{cache,chroot,run,snmp,spool} \
+# /var/{cache,chroot,db,run,snmp,spool} \
# /var/lib/{sshd,nfs,spamassassin,pulse}) #NO TRAILING SLASHES!!!!
prune_prefixes=(\
/home \
/root \
+ /usr/lib/pkgusr \
/usr/src) #NO TRAILING SLASHES!!!!
## NOTE:
done
y[${#y[@]}]=')'
+# The uninstall_package script sets this to `-ignore_readdir_race' so
+# that find doesn't print errors when things it is searching for
+# disappear.
+# IGNORE_READDIR_RACE='-ignore_readdir_race'
+IGNORE_READDIR_RACE=
+
# In the following find command, the part
# -not ( ( "${y[@]}" -prune ) -or "${y[@]}" )
# is responsible for preventing the files that match prune_prefixes from
# -prune has no effect and is always false when -depth is used.
# The -true before "$@" ensures that -depth can be passed as only parameter.
-find "${fs_to_scan[@]}" -xdev $NOLEAF \
+find "${fs_to_scan[@]}" -xdev $NOLEAF $IGNORE_READDIR_RACE \
-not \( \( "${y[@]}" -prune \) -or "${y[@]}" \) \
-and \( "${ugmatcher[@]}" \) -and \( -true "$@" \)