From: Wayne Davison Date: Wed, 9 Mar 2005 02:25:34 +0000 (+0000) Subject: Backward compatibility fix in read_iflags() (for protocols < 29). X-Git-Tag: v2.6.4pre3~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f0e6e5e35c0862db62bb9499502643bfd5b3e1;p=thirdparty%2Frsync.git Backward compatibility fix in read_iflags() (for protocols < 29). --- diff --git a/sender.c b/sender.c index a9e426b6..d4387a47 100644 --- a/sender.c +++ b/sender.c @@ -169,7 +169,8 @@ int read_iflags(int f_in, int f_out, int ndx, char *buf) } } else if (f_out >= 0) { write_int(f_out, ndx); - write_shortint(f_out, isave /*XXX iflags */); + if (protocol_version >= 29) + write_shortint(f_out, isave /*XXX iflags */); if (len >= 0) write_vstring(f_out, buf, len); }