Skip to content

Commit dbb1c2d

Browse files
committed
Set whole_file = 0 when whole_file < 0. Fixes issue 114.
1 parent e8e34ed commit dbb1c2d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

receiver.c

+3
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ int recv_files(int f_in, int f_out, char *local_name)
539539
if (delay_updates)
540540
delayed_bits = bitbag_create(cur_flist->used + 1);
541541

542+
if (whole_file < 0)
543+
whole_file = 0;
544+
542545
progress_init();
543546

544547
while (1) {

sender.c

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ extern int append_mode;
3535
extern int copy_links;
3636
extern int io_error;
3737
extern int flist_eof;
38+
extern int whole_file;
3839
extern int allowed_lull;
3940
extern int preserve_xattrs;
4041
extern int protocol_version;
@@ -204,6 +205,9 @@ void send_files(int f_in, int f_out)
204205
if (DEBUG_GTE(SEND, 1))
205206
rprintf(FINFO, "send_files starting\n");
206207

208+
if (whole_file < 0)
209+
whole_file = 0;
210+
207211
progress_init();
208212

209213
while (1) {

0 commit comments

Comments
 (0)