Fix nasty bug in nfs_access(). A conditional was if (a = b) instead of

if (a == b).
This commit is contained in:
Matthew Dillon 1999-01-27 22:45:49 +00:00
parent 53b3bd0e25
commit cdb96ab470
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43307
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;