Fix -h option:

sense symlink even it is unresolved
This commit is contained in:
Andrey A. Chernov 1995-10-28 11:54:42 +00:00
parent 9d34fdacd9
commit 25c3d35121
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11855

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: test.c,v 1.10 1995/03/19 13:29:28 joerg Exp $
* $Id: test.c,v 1.11 1995/05/30 00:07:29 rgrimes Exp $
*/
#ifndef lint
@ -388,7 +388,7 @@ permission: if (fs->stat.st_uid == geteuid())
goto filetype;
case ISSYMLINK:
i = S_IFLNK;
(void)lstat(sp->u.string, &fs->stat);
fs->rcode = lstat(sp->u.string, &fs->stat);
goto filetype;
case ISFIFO:
i = S_IFIFO;