Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
extern int preserve_links;
extern int preserve_perms;
extern int preserve_devices;
extern int preserve_links;
extern int preserve_perms;
extern int preserve_devices;
void setup_protocol(int f_out,int f_in)
{
if (remote_version == 0) {
void setup_protocol(int f_out,int f_in)
{
if (remote_version == 0) {
if (remote_version < MIN_PROTOCOL_VERSION ||
remote_version > MAX_PROTOCOL_VERSION) {
rprintf(FERROR,"protocol version mismatch - is your shell clean?\n");
if (remote_version < MIN_PROTOCOL_VERSION ||
remote_version > MAX_PROTOCOL_VERSION) {
rprintf(FERROR,"protocol version mismatch - is your shell clean?\n");
checksum_seed = time(NULL);
write_int(f_out,checksum_seed);
} else {
checksum_seed = time(NULL);
write_int(f_out,checksum_seed);
} else {