Fix nasty bug in nfs_access(). A conditional was if (a = b) instead of
if (a == b).
This commit is contained in:
parent
72e4bdcf94
commit
afb6772e77
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
|
||||
* $Id: nfs_vnops.c,v 1.117 1999/01/21 08:29:07 dillon Exp $
|
||||
* $Id: nfs_vnops.c,v 1.118 1999/01/27 22:45:13 dillon Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -411,7 +411,7 @@ nfs_access(ap)
|
||||
aiov.iov_len = auio.uio_resid = NFS_DIRBLKSIZ;
|
||||
error = nfs_readdirrpc(vp, &auio, ap->a_cred);
|
||||
free(bp, M_TEMP);
|
||||
} else if (vp->v_type = VLNK)
|
||||
} else if (vp->v_type == VLNK)
|
||||
error = nfs_readlinkrpc(vp, &auio, ap->a_cred);
|
||||
else
|
||||
error = EACCES;
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
|
||||
* $Id: nfs_vnops.c,v 1.117 1999/01/21 08:29:07 dillon Exp $
|
||||
* $Id: nfs_vnops.c,v 1.118 1999/01/27 22:45:13 dillon Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -411,7 +411,7 @@ nfs_access(ap)
|
||||
aiov.iov_len = auio.uio_resid = NFS_DIRBLKSIZ;
|
||||
error = nfs_readdirrpc(vp, &auio, ap->a_cred);
|
||||
free(bp, M_TEMP);
|
||||
} else if (vp->v_type = VLNK)
|
||||
} else if (vp->v_type == VLNK)
|
||||
error = nfs_readlinkrpc(vp, &auio, ap->a_cred);
|
||||
else
|
||||
error = EACCES;
|
||||
|
Loading…
x
Reference in New Issue
Block a user