Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2011 21:32:09 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226234 - head/sys/fs/unionfs
Message-ID:  <201110102132.p9ALW97w083425@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Mon Oct 10 21:32:08 2011
New Revision: 226234
URL: http://svn.freebsd.org/changeset/base/226234

Log:
  Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND
  is just a modifier for VWRITE.
  
  Submitted by:	rmacklem

Modified:
  head/sys/fs/unionfs/union_vnops.c

Modified: head/sys/fs/unionfs/union_vnops.c
==============================================================================
--- head/sys/fs/unionfs/union_vnops.c	Mon Oct 10 20:57:54 2011	(r226233)
+++ head/sys/fs/unionfs/union_vnops.c	Mon Oct 10 21:32:08 2011	(r226234)
@@ -748,7 +748,7 @@ unionfs_access(struct vop_access_args *a
 						return (error);
 				}
 			}
-			accmode &= ~VWRITE;
+			accmode &= ~(VWRITE | VAPPEND);
 			accmode |= VREAD; /* will copy to upper */
 		}
 		error = VOP_ACCESS(lvp, accmode, ap->a_cred, td);



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