freebsd-dev/bin/sh
Xin LI 0e3e87bd43 Fix a bug when shell expansion is done against dangling symlinks, by
converting the stat() call to a lstat() call, which will cover the
situation.  One can exercise this bug by referring a dangling link with
something like */the-link.

Approved by:	re (scottl)
Submitted by:	Simon 'corecode' Schubert [corecode fs ei tum de]
Obtained from:	NetBSD via DragonFlyBSD (NetBSD rev. 1.51 and DragonFly
		rev. 1.6)
MFC After:	3 days
2005-07-07 18:10:33 +00:00
..
bltin
funcs
alias.c
alias.h
arith_lex.l
arith.h
arith.y
builtins.def
cd.c
cd.h
error.c
error.h
eval.c
eval.h
exec.c
exec.h
expand.c Fix a bug when shell expansion is done against dangling symlinks, by 2005-07-07 18:10:33 +00:00
expand.h
histedit.c
init.h
input.c
input.h
jobs.c
jobs.h
mail.c
mail.h
main.c
main.h
Makefile
memalloc.c
memalloc.h
miscbltin.c
mkbuiltins
mkinit.c
mknodes.c
mksyntax.c
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes
options.c
options.h
output.c
output.h
parser.c
parser.h
redir.c
redir.h
sh.1 Sorted sections and fixed prompt (PS[12]) strings. 2005-06-14 08:25:00 +00:00
shell.h
show.c
show.h
TOUR
trap.c
trap.h
var.c
var.h