X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/730df9d22217d9148a4aeaa792c72e063208b849..aca5500aea3c056f48e14e047288d905b30f392c:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 20d5253c..b3d3ceb2 100644 --- a/clientserver.c +++ b/clientserver.c @@ -28,6 +28,7 @@ #include "rsync.h" extern int verbose; +extern int quiet; extern int list_only; extern int am_sender; extern int am_server; @@ -619,6 +620,7 @@ static int rsync_module(int f_in, int f_out, int i) verbose = 0; /* future verbosity is controlled by client options */ ret = parse_arguments(&argc, (const char ***) &argv, 0); + quiet = 0; /* Don't let someone try to be tricky. */ if (filesfrom_fd == 0) filesfrom_fd = f_in; @@ -684,9 +686,14 @@ static int rsync_module(int f_in, int f_out, int i) set_io_timeout(lp_timeout(i)); - p = lp_incoming_chmod(i); - if (*p && !parse_chmod(p, &chmod_modes)) - rprintf(FLOG, "Invalid \"incoming chmod\" directive: %s\n", p); + if (am_sender) + p = lp_outgoing_chmod(i); + else + p = lp_incoming_chmod(i); + if (*p && !parse_chmod(p, &chmod_modes)) { + rprintf(FLOG, "Invalid \"%sing chmod\" directive: %s\n", + am_sender ? "outgo" : "incom", p); + } start_server(f_in, f_out, argc, argv);