svn commit: r197789 - head/sys/kern
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Oct 5 19:56:57 UTC 2009
Author: trasz
Date: Mon Oct 5 19:56:56 2009
New Revision: 197789
URL: http://svn.freebsd.org/changeset/base/197789
Log:
Fix NFSv4 ACLs on sparc64. Turns out that fuword(9) fetches 64 bits
instead of sizeof(int), and on sparc64 that resulted in fetching wrong
value for acl_maxcnt, which in turn caused __acl_get_link(2) to fail
with EINVAL.
PR: sparc64/139304
Submitted by: Dmitry Afanasiev <KOT at MATPOCKuH.Ru>
Modified:
head/sys/kern/vfs_acl.c
Modified: head/sys/kern/vfs_acl.c
==============================================================================
--- head/sys/kern/vfs_acl.c Mon Oct 5 19:29:49 2009 (r197788)
+++ head/sys/kern/vfs_acl.c Mon Oct 5 19:56:56 2009 (r197789)
@@ -161,7 +161,7 @@ acl_copyout(struct acl *kernel_acl, void
break;
default:
- if (fuword((char *)user_acl +
+ if (fuword32((char *)user_acl +
offsetof(struct acl, acl_maxcnt)) != ACL_MAX_ENTRIES)
return (EINVAL);
More information about the svn-src-all
mailing list