freebsd-dev/usr.bin/xargs
Juli Mallett 4aeb63826e Check the entire length of the current argument for the EOF string with -E,
but don't expect a proper ASCII string to exist right here right now, don't
use strcmp(3) which checks for a NUL.  As we're still building the argument
up, the next character might be garbage.  It would probably be just as safe to
temporarily write a NUL there, but if we've reached the end of argument memory
that might not be the best idea, I think.  It's unclear.

Doing it this way seems to meet the most with the original intent.

PR:		85696
Prodded by:	stefanf
2005-12-31 09:06:45 +00:00
..
Makefile
pathnames.h
strnsubst.c Handle maxsize==0 in such a way that we don't modify the string. 2005-12-30 23:22:50 +00:00
xargs.1 Add a FreeBSD-specific -S flag which controls the maximum size of an argument 2005-12-30 23:25:41 +00:00
xargs.c Check the entire length of the current argument for the EOF string with -E, 2005-12-31 09:06:45 +00:00