CVSROOT: /cvs Module name: src Changes by: [email protected] 2020/04/09 04:27:32
Modified files:
usr.bin/find : function.c
Log message:
find -exec +: use sysconf to find the kernel's idea of ARG_MAX
Using ARG_MAX directly doesn't fly when ARG_MAX gets bumped and the
kernel and userland are not in sync, effectively breaking find -exec +.
Use sysconf(3) as already done in xargs(1).
Spotted by sthen@, ok deraadt@ millert@ sthen@
