summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-13 21:11:57 +0000
committerJeremy Allison <jra@samba.org>2001-04-13 21:11:57 +0000
commit9444e9d9f350961b594a1acbe7a7652d97faec0a (patch)
tree3bd668ddb5992f8ee15da0e830883d87f21daeb8 /source3/smbd
parent819482c07137937ee0c063437d2b2eade2895b99 (diff)
downloadsamba-9444e9d9f350961b594a1acbe7a7652d97faec0a.tar.gz
samba-9444e9d9f350961b594a1acbe7a7652d97faec0a.tar.bz2
samba-9444e9d9f350961b594a1acbe7a7652d97faec0a.zip
Michael Davidson <md@sco.COM> pointed out that acl_get_qualifier can potentially
return a malloced area so added sys_acl_free_qualifier() calls to all supported ACL interfaces to code with this (only Linux needs actual free call). Jeremy. (This used to be commit 5870e6019b82d2088b99acdc0f84e9e4847a1fa5)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/posix_acls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index ae8493220f..a9c8821238 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -1319,6 +1319,7 @@ static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_
uid_to_sid( &sid, *puid);
unix_ug.uid = *puid;
owner_type = UID_ACE;
+ sys_acl_free_qualifier((void *)puid);
break;
}
case SMB_ACL_GROUP_OBJ:
@@ -1337,6 +1338,7 @@ static canon_ace *canonicalise_acl( files_struct *fsp, SMB_ACL_T posix_acl, SMB_
gid_to_sid( &sid, *pgid);
unix_ug.gid = *pgid;
owner_type = GID_ACE;
+ sys_acl_free_qualifier((void *)pgid);
break;
}
case SMB_ACL_MASK: