summaryrefslogtreecommitdiffstats
path: root/bin/test
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-10-28 11:54:42 +0000
committerache <ache@FreeBSD.org>1995-10-28 11:54:42 +0000
commit449a77b65000fd376fbcba537e5fbbba005dae63 (patch)
treebc75e547383f177613fd88b19587bf485d9ba248 /bin/test
parent8284ee3abc51ad7310a9a48f250c7dd33fb6ce9f (diff)
downloadFreeBSD-src-449a77b65000fd376fbcba537e5fbbba005dae63.zip
FreeBSD-src-449a77b65000fd376fbcba537e5fbbba005dae63.tar.gz
Fix -h option:
sense symlink even it is unresolved
Diffstat (limited to 'bin/test')
-rw-r--r--bin/test/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/test/test.c b/bin/test/test.c
index e6f9dc9..b34fdb1 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;
OpenPOWER on IntegriCloud