From 85b057cccff3e3df925e481f889ff4678a594c19 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 23 Feb 2008 07:44:55 -0800 Subject: [PATCH] Check the return code from mbr_uid_to_uuid()/mbr_gid_to_uuid() so that the user sees the right error if they failed. --- lib/sysacls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sysacls.c b/lib/sysacls.c index 008e4c18..26ae86b0 100644 --- a/lib/sysacls.c +++ b/lib/sysacls.c @@ -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 -- 2.34.1