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:
jedgar 2001-04-15 15:21:15 +00:00
parent ab8483b5bf
commit 6328307bd9

View File

@ -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;