[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.6 and 1.7

version 1.6, 2019/02/18 21:34:54 version 1.7, 2019/02/18 21:55:27
Line 55 
Line 55 
 {  {
         struct sess      sess;          struct sess      sess;
         int              fdin = STDIN_FILENO,          int              fdin = STDIN_FILENO,
                          fdout = STDOUT_FILENO, c = 0;                           fdout = STDOUT_FILENO, rc = 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, "remote protocol is older "                  ERRX(&sess,
                         "than our own (%" PRId32 " < %" PRId32 "): "                      "remote protocol %d is older than our own %d: unsupported",
                         "this is not supported",                      sess.rver, sess.lver);
                         sess.rver, sess.lver);                  rc = 2;
                 goto out;                  goto out;
         }          }
   
Line 156 
Line 156 
                 WARNX(&sess, "data remains in read pipe");                  WARNX(&sess, "data remains in read pipe");
 #endif  #endif
   
         c = 1;          rc = 1;
 out:  out:
         return c;          return rc;
 }  }

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