diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-27 22:45:49 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-27 22:45:49 +0000 |
commit | afb6772e77fc6a8c94e11d0c65417ce422532467 (patch) | |
tree | 9a19a6b297d88dd8beeefec4fa95e123b55d142c /sys/nfsclient/nfs_vnops.c | |
parent | 72e4bdcf94f384780663f18c859f45e791b82965 (diff) | |
download | FreeBSD-src-afb6772e77fc6a8c94e11d0c65417ce422532467.zip FreeBSD-src-afb6772e77fc6a8c94e11d0c65417ce422532467.tar.gz |
Fix nasty bug in nfs_access(). A conditional was if (a = b) instead of
if (a == b).
Diffstat (limited to 'sys/nfsclient/nfs_vnops.c')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index bbcd570..0e1554f 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -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; |