Date: Thu, 4 Jan 2001 11:05:49 -0800 (PST) From: Will Andrews <will@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/apply apply.c Message-ID: <200101041905.f04J5ou82617@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
will 2001/01/04 11:05:49 PST
Modified files:
usr.bin/apply apply.c
Log:
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>
Revision Changes Path
1.11 +41 -24 src/usr.bin/apply/apply.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101041905.f04J5ou82617>
