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
..
2005-06-14 08:25:54 +00:00
2005-02-13 23:45:54 +00:00
2005-02-13 22:25:33 +00:00
2005-06-14 08:25:54 +00:00
2005-02-13 22:25:33 +00:00
2005-04-29 11:10:27 +00:00
2005-02-13 22:25:33 +00:00
2005-03-02 11:53:22 +00:00
2004-12-21 09:59:45 +00:00