Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.Approved by: re (implicit)Sponsored by: The FreeBSD Foundation
Add missing headers.
nftw(): POSIX says directories causing loops should be silently skipped.Formerly, loops caused nftw() to abort the traversal with ELOOP.