freebsd-dev/bin
Juli Mallett 634d96e194 Check for possible overflow from sysconf _SC_ARG_MAX and error out in a
correct manner.  Revert my incorrect change to use err(3) for malloc(3)
failing.  Use a size_t variable to store the size of the argument buffer
we allocate, and remove silly casts as the result of having this around.
Modify the math in some of the paranoid checks for buffer overflow to
account for the fact we now are dealing with the actual size of the
buffer.  Remove the static qualifier for arg_max, and the bogus setting
of it to -1.

Include <limits.h> for the definitions we use to check for possible
overflows.

Submitted by:	bde
2002-05-05 04:42:50 +00:00
..
cat Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 20:51:00 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chio Replace use of __progname with the functionally identical and more 2002-03-24 14:56:55 +00:00
chmod Fix warnings inspired by lint, a commercial lint and WARNS=4 2002-02-22 20:45:09 +00:00
cp Fixed some style bugs in revs 1.1 and 1.4. 2002-02-23 17:05:32 +00:00
csh Use NLSLINKS to setup symbolic links in NLS area 2002-03-04 12:29:21 +00:00
date s/CMOS/hardware as talked about on cvs-committers. 2002-04-16 14:28:47 +00:00
dd Various mdoc fixes, including a change that corrects spacing as 2002-03-31 20:49:37 +00:00
df Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
domainname Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
echo clarify code: 2002-03-04 05:30:04 +00:00
ed Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
expr Provide an environment variabloe, EXPR_COMPAT, which disables option 2002-04-22 21:23:09 +00:00
getfacl Partially fix (well, work around) warnings inspired by lint, a 2002-02-22 21:02:58 +00:00
hostname Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
kenv Add a reference to the kenv(2) manpage. 2002-04-18 18:49:41 +00:00
kill o __P has been reoved 2002-02-02 06:48:10 +00:00
ln Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 21:11:03 +00:00
ls ls(1) is utility not function 2002-04-16 20:03:54 +00:00
mkdir Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
mv Update SCM ID. 2002-03-22 19:52:59 +00:00
pax Use `The .Nm utility' 2002-04-21 12:53:08 +00:00
ps Check for possible overflow from sysconf _SC_ARG_MAX and error out in a 2002-05-05 04:42:50 +00:00
pwd Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
rcp Replaced exists() tests with two equivalent defined(). 2002-04-18 07:01:35 +00:00
realpath Use `The .Nm utility' 2002-04-20 11:58:12 +00:00
rm Update STANDARDS section on rm(1) to reflect current conformance. 2002-03-02 05:10:11 +00:00
rmail Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
rmdir o __P has been reoved 2002-02-02 06:48:10 +00:00
setfacl Remove extraneous blank line 2002-02-19 02:36:35 +00:00
sh Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
sleep o __P has been reoved 2002-02-02 06:50:57 +00:00
stty o __P has been reoved 2002-02-02 06:50:57 +00:00
sync o __P has been reoved 2002-02-02 06:50:57 +00:00
test Use intmax_t as quad_t replacement, like in expr 2002-03-28 16:30:42 +00:00
Makefile Introduce NO_RCMNDS flag so as to not compile rsh, rlogin, and rcp on will, 2002-04-09 18:25:44 +00:00
Makefile.inc Lock down with WFORMAT=1 except those directories with unfixed warnings. 2002-02-04 02:49:19 +00:00