diff options
author | Wayne Davison <wayned@samba.org> | 2004-01-27 01:05:12 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-01-27 01:05:12 +0000 |
commit | a53426441b67e3715099faa0c0d0bbca19fb6369 (patch) | |
tree | 3122993a4915856f03b59c080078e8d677f238f7 /batch.c | |
parent | 5d1966948eaa37a6283490255aa340753fcd44b1 (diff) | |
download | rsync-a53426441b67e3715099faa0c0d0bbca19fb6369.tar.gz |
Use the new names for the transmit-flag defines.
Diffstat (limited to 'batch.c')
-rw-r--r-- | batch.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -45,8 +45,10 @@ void write_batch_flist_info(int flist_count, struct file_struct **files) write_int(f, protocol_version); write_int(f, flist_count); - for (i = 0; i < flist_count; i++) - send_file_entry(files[i], f, files[i]->flags & LIVE_FLAGS); + for (i = 0; i < flist_count; i++) { + send_file_entry(files[i], f, files[i]->flags & FLAG_TOP_DIR ? + XMIT_TOP_DIR : 0); + } send_file_entry(NULL, f, 0); protocol_version = save_pv; @@ -149,7 +151,7 @@ struct file_list *create_flist_from_batch(void) out_of_memory("create_flist_from_batch"); for (i = 0; (flags = read_byte(f)) != 0; i++) { - if (protocol_version >= 28 && (flags & EXTENDED_FLAGS)) + if (protocol_version >= 28 && (flags & XMIT_EXTENDED_FLAGS)) flags |= read_byte(f) << 8; receive_file_entry(&batch_flist->files[i], flags, f); } |