patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
[rsync/rsync.git] / compat.c
index ba1a83e..af72f8b 100644 (file)
--- a/compat.c
+++ b/compat.c
@@ -54,7 +54,7 @@ void setup_protocol(int f_out,int f_in)
            remote_version > MAX_PROTOCOL_VERSION) {
                rprintf(FERROR,"protocol version mismatch - is your shell clean?\n");
                rprintf(FERROR,"(see the rsync man page for an explanation)\n");
            remote_version > MAX_PROTOCOL_VERSION) {
                rprintf(FERROR,"protocol version mismatch - is your shell clean?\n");
                rprintf(FERROR,"(see the rsync man page for an explanation)\n");
-               exit_cleanup(1);
+               exit_cleanup(RERR_PROTOCOL);
        }       
        
        if (verbose > 2)
        }       
        
        if (verbose > 2)