Check the return code from mbr_uid_to_uuid()/mbr_gid_to_uuid() so

that the user sees the right error if they failed.
This commit is contained in:
Wayne Davison
2008-02-23 07:44:55 -08:00
parent a2c473bb59
commit 85b057cccf

View File

@@ -2703,6 +2703,8 @@ int sys_acl_set_info(SMB_ACL_ENTRY_T entry, SMB_ACL_TAG_T tag_type, uint32 bits,
rc = mbr_uid_to_uuid(u_g_id, uu);
else
rc = mbr_gid_to_uuid(u_g_id, uu);
if (rc != 0)
return rc;
if (acl_set_tag_type(entry, tag_type) != 0
|| acl_set_qualifier(entry, &uu) != 0