From 25c3d351214d258be7e50841929071e7990722f3 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 28 Oct 1995 11:54:42 +0000 Subject: [PATCH] Fix -h option: sense symlink even it is unresolved --- bin/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/test/test.c b/bin/test/test.c index e6f9dc9e0540..b34fdb14aa65 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -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;