From owner-freebsd-current Wed Jan 27 14:44:19 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA23735 for freebsd-current-outgoing; Wed, 27 Jan 1999 14:44:19 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23730 for ; Wed, 27 Jan 1999 14:44:18 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.2/8.9.1) id OAA64912; Wed, 27 Jan 1999 14:44:17 -0800 (PST) (envelope-from dillon) Date: Wed, 27 Jan 1999 14:44:17 -0800 (PST) From: Matthew Dillon Message-Id: <199901272244.OAA64912@apollo.backplane.com> To: current@FreeBSD.ORG Subject: bug in nfs_access() Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bug in nfs_access(). nfs/nfs_vnops.c, line 414 or so. Fixed! This is a nasty one. I'm surprised it hasn't caused grief before -Matt Matthew Dillon ... auio.uio_procp = ap->a_p; if (vp->v_type == VREG) error = nfs_readrpc(vp, &auio, ap->a_cred); else if (vp->v_type == VDIR) { char* bp; bp = malloc(NFS_DIRBLKSIZ, M_TEMP, M_WAITOK); aiov.iov_base = bp; 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) error = nfs_readlinkrpc(vp, &auio, ap->a_cred); else error = EACCES; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message