Fix the way acl_init(3) uses posix_memalign(3) - the latter doesn't
set errno. MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
aa44f2ed5e
commit
b0f957f94a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287426
@ -67,8 +67,10 @@ acl_init(int count)
|
||||
|
||||
error = posix_memalign((void *)&acl, 1 << _ACL_T_ALIGNMENT_BITS,
|
||||
sizeof(struct acl_t_struct));
|
||||
if (error)
|
||||
if (error) {
|
||||
errno = error;
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
bzero(acl, sizeof(struct acl_t_struct));
|
||||
acl->ats_brand = ACL_BRAND_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user