summaryrefslogtreecommitdiff
path: root/lib/sysacls.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-10-05 20:47:18 +0000
committerWayne Davison <wayned@samba.org>2007-10-05 20:47:18 +0000
commit14dfad3873691b5ea9fe0170d9c7f6f5c9ea3179 (patch)
tree7e11d7bbd9c43e290a7f18a9f6e5070832dd0cb7 /lib/sysacls.c
parent215465713b5b9df1da371c5a871af6a67ecdc0c6 (diff)
downloadrsync-14dfad3873691b5ea9fe0170d9c7f6f5c9ea3179.tar.gz
rsync-14dfad3873691b5ea9fe0170d9c7f6f5c9ea3179.tar.bz2
rsync-14dfad3873691b5ea9fe0170d9c7f6f5c9ea3179.zip
A couple tweaks to the AIX ACL code.
Diffstat (limited to 'lib/sysacls.c')
-rw-r--r--lib/sysacls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sysacls.c b/lib/sysacls.c
index bba3ca16..beb6d0c2 100644
--- a/lib/sysacls.c
+++ b/lib/sysacls.c
@@ -2239,7 +2239,7 @@ int sys_acl_get_info(SMB_ACL_ENTRY_T entry, SMB_ACL_TAG_T *tag_type_p, uint32 *b
return -1;
if (*tag_type_p == SMB_ACL_USER || *tag_type_p == SMB_ACL_GROUP)
- *u_g_id_p = entry->ace_id->id_data;
+ memcpy(u_g_id_p, entry->ace_id->id_data, sizeof (id_t));
permset = &entry->ace_access;
@@ -2452,7 +2452,7 @@ int sys_acl_set_file( const char *name, SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl
memcpy(acl_entry->ace_id->id_data, &user_id, sizeof(uid_t));
}
- rc = chacl(name,file_acl,file_acl->acl_len);
+ rc = chacl((char*)name,file_acl,file_acl->acl_len);
DEBUG(10,("errno is %d\n",errno));
DEBUG(10,("return code is %d\n",rc));
SAFE_FREE(file_acl);