[BACK]Return to server.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Diff for /src/usr.bin/rsync/server.c between version 1.5 and 1.6

version 1.5, 2019/02/17 16:17:07 version 1.6, 2019/02/18 21:34:54
Line 55 
Line 55 
 {  {
         struct sess      sess;          struct sess      sess;
         int              fdin = STDIN_FILENO,          int              fdin = STDIN_FILENO,
                          fdout = STDOUT_FILENO, rc = 0;                           fdout = STDOUT_FILENO, c = 0;
   
         memset(&sess, 0, sizeof(struct sess));          memset(&sess, 0, sizeof(struct sess));
         sess.opts = opts;          sess.opts = opts;
Line 87 
Line 87 
         sess.mplex_writes = 1;          sess.mplex_writes = 1;
   
         if (sess.rver < sess.lver) {          if (sess.rver < sess.lver) {
                 ERRX(&sess,                  ERRX(&sess, "remote protocol is older "
                     "remote protocol %d is older than our own %d: unsupported",                          "than our own (%" PRId32 " < %" PRId32 "): "
                     sess.rver, sess.lver);                          "this is not supported",
                 rc = 2;                          sess.rver, sess.lver);
                 goto out;                  goto out;
         }          }
   
Line 156 
Line 156 
                 WARNX(&sess, "data remains in read pipe");                  WARNX(&sess, "data remains in read pipe");
 #endif  #endif
   
         rc = 1;          c = 1;
 out:  out:
         return rc;          return c;
 }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6