Correct a bogus cast in acl_get_qualifier() causing invalid
ID's to be stored in the ACL. Obtained from: TrustedBSD Project
This commit is contained in:
parent
ab8483b5bf
commit
6328307bd9
@ -125,7 +125,7 @@ acl_set_qualifier(acl_entry_t entry_d, const void *tag_qualifier_p)
|
||||
switch(entry_d->ae_tag) {
|
||||
case ACL_USER:
|
||||
case ACL_GROUP:
|
||||
entry_d->ae_id = (uid_t)tag_qualifier_p;
|
||||
entry_d->ae_id = *(uid_t *)tag_qualifier_p;
|
||||
break;
|
||||
default:
|
||||
errno = EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user