diff options
author | Wayne Davison <wayned@samba.org> | 2007-04-18 02:33:02 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-04-18 02:33:02 +0000 |
commit | a217c4535951943e00d6dd991cc6f775034ca4a9 (patch) | |
tree | a633b0f076b266341b706c0ee3b1cce3535bdf9a /uidlist.c | |
parent | 764782662d8049bf835cad0e643be6ee6ed7280c (diff) | |
download | rsync-a217c4535951943e00d6dd991cc6f775034ca4a9.tar.gz |
Got rid of ACL's uid/gid iterators in favor of a single function
that converts the uids & gids in a loop.
Diffstat (limited to 'uidlist.c')
-rw-r--r-- | uidlist.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -342,17 +342,11 @@ void recv_uid_list(int f, struct file_list *flist) recv_group_name(f, (gid_t)id); } + /* Now convert all the uids/gids from sender values to our values. */ #ifdef SUPPORT_ACLS - if (preserve_acls && !numeric_ids) { - id_t *id; - while ((id = next_acl_uid(flist)) != NULL) - *id = match_uid(*id); - while ((id = next_acl_gid(flist)) != NULL) - *id = match_gid(*id); - } + if (preserve_acls && !numeric_ids) + match_acl_ids(); #endif - - /* Now convert all the uids/gids from sender values to our values. */ if (am_root && preserve_uid && !numeric_ids) { for (i = 0; i < flist->count; i++) F_OWNER(flist->files[i]) = match_uid(F_UID(flist->files[i])); |