X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/37f9805dabba76b7a00bd2a0227762f6f239b598..1347d5126a4d89718544d976f64943dfa93dd8c4:/sender.c diff --git a/sender.c b/sender.c index 4a344ea4..3a443468 100644 --- a/sender.c +++ b/sender.c @@ -160,7 +160,7 @@ void send_files(struct file_list *flist,int f_out,int f_in) return; } - fd = open(fname,O_RDONLY); + fd = do_open(fname, O_RDONLY, 0); if (fd == -1) { io_error = 1; rprintf(FERROR,"send_files failed to open %s: %s\n", @@ -200,6 +200,8 @@ void send_files(struct file_list *flist,int f_out,int f_in) if (!am_server) { log_transfer(file, fname+offset); } + + set_compression(fname); match_sums(f_out,s,buf,st.st_size);