freebsd-nq/bin
David E. O'Brien 7cfe69417c Do not assume in growstackstr() that a "precious" character will be
immediately written into the stack after the call.  Instead let the caller
manage the "space left".

Previously, growstackstr()'s assumption causes problems with STACKSTRNUL()
where we want to be able to turn a stack into a C string, and later
pretend the NUL is not there.

This fixes a bug in STACKSTRNUL() (that grew the stack) where:
1. STADJUST() called after a STACKSTRNUL() results in an improper adjust.
   This can be seen in ${var%pattern} and ${var%%pattern} evaluation.
2. Memory leak in STPUTC() called after a STACKSTRNUL().

Reviewed by:	jilles
2010-10-13 23:29:09 +00:00
..
cat
chflags mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
chio
chmod
cp
csh
date
dd
df
domainname
echo
ed
expr expr(1): Add sh(1) versions of examples, remove an incorrect example. 2010-09-09 21:59:53 +00:00
getfacl
hostname
kenv
kill
ln
ls
mkdir
mv
pax Touch the man page date after updating the ustar limitations. 2010-08-29 12:17:16 +00:00
pkill
ps Make a thread's address available via the kern proc sysctl, just like the 2010-10-08 00:44:53 +00:00
pwait
pwd
rcp
realpath
rm rm(1): clarify that -P works only when blocks are updated in-place 2010-10-08 15:20:20 +00:00
rmail
rmdir
setfacl
sh Do not assume in growstackstr() that a "precious" character will be 2010-10-13 23:29:09 +00:00
sleep Document the new argument parser for sleep(1) and SIGINFO behaviour. 2010-08-02 10:59:23 +00:00
stty mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
sync
test Revert changes of 'assure' to 'ensure' made in r211936. 2010-09-11 10:49:56 +00:00
uuidgen
Makefile Merge from tbemd: 2010-09-13 01:29:51 +00:00
Makefile.inc