diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-10-28 11:54:42 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-10-28 11:54:42 +0000 |
commit | 25c3d351214d258be7e50841929071e7990722f3 (patch) | |
tree | bc75e547383f177613fd88b19587bf485d9ba248 /bin/test | |
parent | 9d34fdacd9a1f937e787631d5301e91d2c4b9ae5 (diff) | |
download | src-25c3d351214d258be7e50841929071e7990722f3.tar.gz src-25c3d351214d258be7e50841929071e7990722f3.zip |
Fix -h option:
sense symlink even it is unresolved
Notes
Notes:
svn path=/head/; revision=11855
Diffstat (limited to 'bin/test')
-rw-r--r-- | bin/test/test.c | 4 |
1 files 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; |