X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3f55bd5dad9d8639755f0ed5ce70d6936ce699c2..3eaf615f40d15743971b526b27111c6aa9407f87:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 0e07da77..c0e5d1aa 100644 --- a/clientserver.c +++ b/clientserver.c @@ -129,7 +129,7 @@ int start_inband_exchange(char *user, char *path, int f_in, int f_out, int argc) sargs[sargc] = NULL; - io_printf(f_out, "@RSYNCD: %d\n", PROTOCOL_VERSION); + io_printf(f_out, "@RSYNCD: %d\n", protocol_version); if (!read_line(f_in, line, sizeof(line)-1)) { rprintf(FERROR, "rsync: did not see server greeting\n"); @@ -332,14 +332,14 @@ static int rsync_module(int f_in, int f_out, int i) return -1; } - if (!push_dir("/", 0)) { + if (!push_dir("/")) { rsyserr(FERROR, errno, "chdir %s failed\n", lp_path(i)); io_printf(f_out, "@ERROR: chdir failed\n"); return -1; } } else { - if (!push_dir(lp_path(i), 0)) { + if (!push_dir(lp_path(i))) { rsyserr(FERROR, errno, "chdir %s failed\n", lp_path(i)); io_printf(f_out, "@ERROR: chdir failed\n"); return -1; @@ -522,7 +522,7 @@ int start_daemon(int f_in, int f_out) set_nonblocking(f_in); } - io_printf(f_out, "@RSYNCD: %d\n", PROTOCOL_VERSION); + io_printf(f_out, "@RSYNCD: %d\n", protocol_version); motd = lp_motd_file(); if (motd && *motd) {