aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2009-11-06 11:29:10 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2009-11-06 11:29:10 +0000
commit09700a122a4be5f12c480d563bf69062ffe276d6 (patch)
tree86e32e9e124d66d0dde738e4bba2f8b18072f8ed
parent2b145d43387b4bb77cee0dcb91da327fb570979d (diff)
downloadsrc-09700a122a4be5f12c480d563bf69062ffe276d6.tar.gz
src-09700a122a4be5f12c480d563bf69062ffe276d6.zip
MFC r197789:
Fix ACL support 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> Approved by: re (kib)
Notes
Notes: svn path=/releng/8.0/; revision=198984
-rw-r--r--sys/kern/vfs_acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c
index ce1fa33b4270..2dd64f44e458 100644
--- a/sys/kern/vfs_acl.c
+++ b/sys/kern/vfs_acl.c
@@ -161,7 +161,7 @@ acl_copyout(struct acl *kernel_acl, void *user_acl, acl_type_t type)
break;
default:
- if (fuword((char *)user_acl +
+ if (fuword32((char *)user_acl +
offsetof(struct acl, acl_maxcnt)) != ACL_MAX_ENTRIES)
return (EINVAL);