Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2002 10:50:02 -0800 (PST)
From:      Thomas Quinot <thomas@FreeBSD.ORG>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/46515: NFSv2 client denies O_APPEND open on existing file
Message-ID:  <200212281850.gBSIo2Nm023330@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/46515; it has been noted by GNATS.

From: Thomas Quinot <thomas@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212281850.gBSIo2Nm023330>