Moved the write_stream_flags() call from io.c into main.c so that

it gets called before the transfer starts (thus ensuring that it
can write out un-tweaked values of preserver_[ug]id vars).
This commit is contained in:
Wayne Davison committed 2006-12-18 06:56:30 +00:00
1 parent 99a957d3f4
commit e10664c5e8
2 files changed
+3 -2

No files matched your search

-2
View File
@@ -1548,8 +1548,6 @@ void close_multiplexing_out(void)
void start_write_batch(int fd)
{
write_stream_flags(batch_fd);
/* Some communication has already taken place, but we don't
* enable batch writing until here so that we can write a
* canonical record of the communication even though the
+3
View File
@@ -1360,6 +1360,9 @@ int main(int argc,char *argv[])
}
if (read_batch)
read_stream_flags(batch_fd);
else
write_stream_flags(batch_fd);
}
if (write_batch < 0)
dry_run = 1;