diff options
author | Wayne Davison <wayned@samba.org> | 2006-12-03 06:44:16 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-12-03 06:44:16 +0000 |
commit | 82ad07c4182f744c07b96a15df4572e559ed7dc8 (patch) | |
tree | 1f6dd4c5f7f72d77dde613a08c1d0e3a8905cc46 /uidlist.c | |
parent | d144e43bb3ea77bdc9d1dd68a648166970822dd6 (diff) | |
download | android_external_rsync-82ad07c4182f744c07b96a15df4572e559ed7dc8.tar.gz android_external_rsync-82ad07c4182f744c07b96a15df4572e559ed7dc8.tar.bz2 android_external_rsync-82ad07c4182f744c07b96a15df4572e559ed7dc8.zip |
- Typical tranfers now save 12-20 bytes per file because several vars
were moved out of file_struct into an optional member-var setup.
- Renamed and reorganized the FLAG_* defines.
- Use NDX_DONE instead of a literal -1 when sending/checking the
end-of-phase index value.
Diffstat (limited to 'uidlist.c')
-rw-r--r-- | uidlist.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -270,9 +270,6 @@ void send_uid_list(int f) { struct idlist *list; - if (numeric_ids) - return; - if (preserve_uid) { int len; /* we send sequences of uid/byte-length/name */ @@ -338,10 +335,10 @@ void recv_uid_list(int f, struct file_list *flist) /* 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++) - flist->files[i]->uid = match_uid(flist->files[i]->uid); + F_UID(flist->files[i]) = match_uid(F_UID(flist->files[i])); } if (preserve_gid && (!am_root || !numeric_ids)) { for (i = 0; i < flist->count; i++) - flist->files[i]->gid = match_gid(flist->files[i]->gid); + F_GID(flist->files[i]) = match_gid(F_GID(flist->files[i])); } } |