Author: rmacklem
Date: Tue Jan 18 14:34:45 2011
New Revision: 217535
URL: http://svn.freebsd.org/changeset/base/217535

Log:
  Fix the experimental NFSv4 server so that it uses VOP_ACCESSX()
  to check for VREAD_ACL instead of VOP_ACCESS().
  
  MFC after:    3 days

Modified:
  head/sys/fs/nfs/nfs_commonsubs.c

Modified: head/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonsubs.c    Tue Jan 18 11:51:51 2011        
(r217534)
+++ head/sys/fs/nfs/nfs_commonsubs.c    Tue Jan 18 14:34:45 2011        
(r217535)
@@ -1983,7 +1983,7 @@ nfsv4_fillattr(struct nfsrv_descript *nd
                        NFSCLRBIT_ATTRBIT(retbitp, NFSATTRBIT_ACL);
                } else if (naclp != NULL) {
                        if (vn_lock(vp, LK_SHARED) == 0) {
-                               error = VOP_ACCESS(vp, VREAD_ACL, cred, p);
+                               error = VOP_ACCESSX(vp, VREAD_ACL, cred, p);
                                if (error == 0)
                                        error = VOP_GETACL(vp, ACL_TYPE_NFS4,
                                            naclp, cred, p);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to