diff options
author | delphij <delphij@FreeBSD.org> | 2005-07-07 18:10:33 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2005-07-07 18:10:33 +0000 |
commit | 909e7ff886fb519c878c02fa47955048637cc7e7 (patch) | |
tree | d1921c58b11cdd67c4a5488beb4909dbd89df2ee /sys/compat/linux/linux_misc.c | |
parent | 979be5a2e14d0620c8c3f9349fa59057243ab738 (diff) | |
download | FreeBSD-src-909e7ff886fb519c878c02fa47955048637cc7e7.zip FreeBSD-src-909e7ff886fb519c878c02fa47955048637cc7e7.tar.gz |
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
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
0 files changed, 0 insertions, 0 deletions