freebsd-dev/usr.bin/xargs
Colin Percival 5578bd8c99 Modify behaviour of xargs -I in order to:
1. Conform to IEEE Std 1003.1-2004, which state that "Constructed
arguments cannot grow larger than 255 bytes", and
2. Avoid a buffer overflow.

Unfortunately the standard doesn't indicate how xargs is supposed to
handle arguments which (with the appropriate substitutions) would grow
larger than 255 bytes; this solution handles those by making as many
substitutions as possible without overflowing the buffer.

OpenBSD's xargs resolves this in a different direction, by making
all the substitutions and then silently truncating the resulting string.

Since this change may break existing scripts which rely upon the buffer
overflow (255 bytes isn't really all that long...) it will not be MFCed.
2004-10-18 15:40:47 +00:00
..
Makefile xargs(1) is WARNS=6 clean. 2003-03-28 16:24:11 +00:00
pathnames.h
strnsubst.c Modify behaviour of xargs -I in order to: 2004-10-18 15:40:47 +00:00
xargs.1 Document incorrect handling of multibyte characters with -I and -J options. 2004-08-02 03:07:42 +00:00
xargs.c Call setlocale() with category LC_ALL instead of LC_MESSAGES. We need 2004-07-12 04:18:44 +00:00