a large change to make rsync much more memory efficient. This is done
[rsync/rsync.git] / uidlist.c
index b7d84ce..962bb8c 100644 (file)
--- a/uidlist.c
+++ b/uidlist.c
@@ -300,11 +300,11 @@ void recv_uid_list(int f, struct file_list *flist)
        /* now convert the uid/gid of all files in the list to the mapped
           uid/gid */
        for (i=0;i<flist->count;i++) {
-               if (preserve_uid && flist->files[i].uid != 0) {
-                       flist->files[i].uid = match_uid(flist->files[i].uid);
+               if (preserve_uid && flist->files[i]->uid != 0) {
+                       flist->files[i]->uid = match_uid(flist->files[i]->uid);
                }
-               if (preserve_gid && flist->files[i].gid != 0) {
-                       flist->files[i].gid = match_gid(flist->files[i].gid);
+               if (preserve_gid && flist->files[i]->gid != 0) {
+                       flist->files[i]->gid = match_gid(flist->files[i]->gid);
                }
        }
 }