From owner-freebsd-bugs Sat Dec 28 10:50: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1608A37B401 for ; Sat, 28 Dec 2002 10:50:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFD1843F0F for ; Sat, 28 Dec 2002 10:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBSIo2NS023331 for ; Sat, 28 Dec 2002 10:50:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBSIo2Nm023330; Sat, 28 Dec 2002 10:50:02 -0800 (PST) Date: Sat, 28 Dec 2002 10:50:02 -0800 (PST) Message-Id: <200212281850.gBSIo2Nm023330@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Thomas Quinot Subject: Re: kern/46515: NFSv2 client denies O_APPEND open on existing file Reply-To: Thomas Quinot Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/46515; it has been noted by GNATS. From: Thomas Quinot To: bug-followup@freebsd.org Cc: dillon@freebsd.org Subject: Re: kern/46515: NFSv2 client denies O_APPEND open on existing file Date: Sat, 28 Dec 2002 19:41:41 +0100 Le 2002-12-24, Thomas Quinot écrivait : > >Fix: > None so far. The pattch below seems to work around the problem (and to print the message 'Ignoring VAPPEND' at the times where I previously had permission denied problems). I am really puzzled as to why nobody stumbled on this problem, though. Index: nfs_vnops.c =================================================================== RCS file: /home/ncvs/src/sys/nfsclient/nfs_vnops.c,v retrieving revision 1.189 diff -u -r1.189 nfs_vnops.c --- nfs_vnops.c 11 Oct 2002 14:58:32 -0000 1.189 +++ nfs_vnops.c 28 Dec 2002 18:34:30 -0000 @@ -3022,6 +3022,10 @@ ; } error = (vap->va_mode & mode) == mode ? 0 : EACCES; + if (error == EACCES && ((vap->va_mode & mode) == (mode & ~VAPPEND))) { + printf ("nfsspec_access: ignoring VAPPEND\n"); + error = 0; + } return (error); } -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message