Date: Sun, 26 Jun 2011 09:48:01 GMT From: Ilya Putsikau <ilya@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 195349 for review Message-ID: <201106260948.p5Q9m1ik010826@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@195349?ac=10 Change 195349 by ilya@ilya_triton2011 on 2011/06/26 09:47:40 Allow vnop_access() calls for symbolic links Merge http://macfuse.googlecode.com/svn/trunk@632 Affected files ... .. //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_internal.h#12 edit .. //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_vnops.c#22 edit Differences ... ==== //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_internal.h#12 (text+ko) ==== @@ -56,6 +56,12 @@ return (vp->v_type == VDIR ? 1 : 0); } +static __inline int +vnode_islnk(struct vnode *vp) +{ + return (vp->v_type == VLNK ? 1 : 0); +} + static __inline ssize_t uio_resid(struct uio *uio) { ==== //depot/projects/soc2011/ilya_fuse/fuse_module/fuse_vnops.c#22 (text+ko) ==== @@ -146,6 +146,10 @@ return EBADF; } + if (vnode_islnk(vp)) { + return 0; + } + bzero(&facp, sizeof(facp)); if (fvdat->flags & FVP_ACCESS_NOOP) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106260948.p5Q9m1ik010826>