mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix -h option:
sense symlink even it is unresolved
This commit is contained in:
parent
9d34fdacd9
commit
25c3d35121
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11855
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue