freebsd-dev/bin
Jilles Tjoelker e9e9223546 sh: Fix a crash with the stackmark code.
If a stack mark is set while the current stack block is empty, the stack
block may move later on (because of realloc()) and the stack mark needs to
be updated. This updating does not happen after popstackmark() has been
called; therefore, call setstackmark() again if the stack mark is still
being used.

For some reason, this only affects a few users. I cannot reproduce it. The
situation seems quite rare as well because an empty stack block would
usually be freed (by popstackmark()) before execution reaches a
setstackmark() call.

PR:		175922
Tested by:	KT Sin
2013-02-19 23:46:51 +00:00
..
cat Fix date. 2013-01-29 20:01:47 +00:00
chflags mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
chio Add static keywords to chio(1). 2011-12-11 20:53:12 +00:00
chmod Update sticky(7) cross references. 2011-05-13 16:29:57 +00:00
cp Return with an error from copy_link(), copy_fifo() and copy_special() if 2013-01-27 05:59:28 +00:00
csh Update to tcsh 6.18.01. 2012-02-22 03:36:15 +00:00
date Fix socket calls on error post-r243965. 2012-12-21 15:54:13 +00:00
dd More -Wmissing-variable-declarations fixes. 2012-10-20 10:33:15 +00:00
df Don't time travel back and use a present date. 2013-01-25 18:47:16 +00:00
domainname Use a standard section name. 2006-12-18 15:45:01 +00:00
echo echo(1): Clarify portability and mention literal "--" handling. 2010-11-12 22:43:40 +00:00
ed More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
expr Remove redundant declaration of yyparse 2012-05-22 03:01:54 +00:00
getfacl Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
hostname Staticify internal routines. 2009-06-23 23:30:56 +00:00
kenv I forgot to bump the manpage date. 2012-05-12 02:49:40 +00:00
kill kill: Note that this is used both as a normal program and a shell builtin. 2011-03-01 21:48:22 +00:00
ln Fix wording nit. 2012-12-28 22:06:33 +00:00
ls When WCHAR_MIN == 0 the check if a wchar_t value will always be true. In 2013-01-06 02:50:38 +00:00
mkdir Put some static keywords in the source code. 2011-10-31 08:59:17 +00:00
mv Follow the behavior as specified in POSIX: 2012-11-15 15:05:51 +00:00
pax Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
pkill Make sys_signame upper case. 2011-02-04 16:40:50 +00:00
ps Document P_PPTRACE. 2013-02-07 15:37:51 +00:00
pwait Use a different way to silence clang analyzer as done in r245494 by 2013-01-16 18:15:25 +00:00
pwd Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 17:37:39 +00:00
rcp Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
realpath Make `realpath'' behave like `realpath .''. 2011-06-21 19:34:57 +00:00
rm Fix bin/ build with a 64-bit ino_t. 2012-09-27 23:31:12 +00:00
rmail Bump WARNS where possible. 2010-02-15 14:07:40 +00:00
rmdir Fix markup. 2006-12-27 12:14:56 +00:00
setfacl Fix NFSv4 permission description in setfacl(1) manual page: the 'D' 2013-02-08 18:43:47 +00:00
sh sh: Fix a crash with the stackmark code. 2013-02-19 23:46:51 +00:00
sleep Document the new argument parser for sleep(1) and SIGINFO behaviour. 2010-08-02 10:59:23 +00:00
stty stty: Mark usage() __dead2. 2012-07-15 21:12:22 +00:00
sync /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
test test(1): Document == alias for =. 2012-12-27 13:21:37 +00:00
uuidgen Mention the upper hard limit for -n option. Patch slightly modified 2012-05-23 16:19:19 +00:00
Makefile Merge from tbemd: 2010-09-13 01:29:51 +00:00
Makefile.inc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00