Include 2008 in the copyright years.
[rsync/rsync.git] / lib / sysacls.c
index 008e4c1..071b06f 100644 (file)
@@ -2,6 +2,7 @@
  * Unix SMB/CIFS implementation.
  * Based on the Samba ACL support code.
  * Copyright (C) Jeremy Allison 2000.
+ * Copyright (C) 2007-2008 Wayne Davison
  *
  * The permission functions have been changed to get/set all bits via
  * one call.  Some functions that rsync doesn't need were also removed.
@@ -2703,6 +2704,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