summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_set.c
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2001-04-15 15:21:15 +0000
committerjedgar <jedgar@FreeBSD.org>2001-04-15 15:21:15 +0000
commitd24edc9e6d68c313b6704a4ea739a5abafb08fb5 (patch)
tree53e6cc6db38a35a849c8234ed8130d38f1a8a487 /lib/libc/posix1e/acl_set.c
parentd044f40e46f4ae97f045f27e1c03d847a8a894da (diff)
downloadFreeBSD-src-d24edc9e6d68c313b6704a4ea739a5abafb08fb5.zip
FreeBSD-src-d24edc9e6d68c313b6704a4ea739a5abafb08fb5.tar.gz
Correct a bogus cast in acl_get_qualifier() causing invalid
ID's to be stored in the ACL. Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libc/posix1e/acl_set.c')
-rw-r--r--lib/libc/posix1e/acl_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_set.c b/lib/libc/posix1e/acl_set.c
index 172e9db..e8f177d 100644
--- a/lib/libc/posix1e/acl_set.c
+++ b/lib/libc/posix1e/acl_set.c
@@ -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;
OpenPOWER on IntegriCloud