diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-23 03:45:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-23 03:45:02 +0000 |
commit | 3ec4dd9781ed23be4a2b939fa5bfded619a1a8fb (patch) | |
tree | 8f38944aafd1109b48d1e9de3f60d85a50db7a5a /uidlist.c | |
parent | ec0e5ac001843c24d58073447842c2b89b38bf96 (diff) | |
download | rsync-3ec4dd9781ed23be4a2b939fa5bfded619a1a8fb.tar.gz |
a large change to make rsync much more memory efficient. This is done
in 3 ways:
1) the realloc is done on a list of pointers, not a list of structures
2) only the basename of the file is now kept in the file struct an a
util function f_name() is now used to access the full name when
required.
3) pointers to directory names are re-used
hopefully I haven't broken anything. This will need lots of testing.
Diffstat (limited to 'uidlist.c')
-rw-r--r-- | uidlist.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } } } |