freebsd-skq/usr.bin/apply
Will Andrews c494ed80cd BDECFLAGS; de-__P()-ify, ANSIfy, use snprintf() instead of sprintf(),
especially on strings passed from argv; rename system() to exec_shell(),
and make it static; use strlcpy() and make sure it works; use proper
type (size_t) to be passed to malloc()/realloc().

Use getusershell() to make sure the SHELL environment variable passed is
safe to use.  Add new option -s to allow anal users to pass things like
perl; this option is here along with getusershell() checking since the
such checking is only intended to affect things like suidperl that might
call apply(1).

Reviewed by:	markm, jhb, C. Stephen Gunn <csg@waterspout.com>
2001-01-04 19:05:49 +00:00
..
apply.1 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
apply.c BDECFLAGS; de-__P()-ify, ANSIfy, use snprintf() instead of sprintf(), 2001-01-04 19:05:49 +00:00
Makefile Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00