Document the new "log format" options: %M (modtime), %U (uid),
[rsync/rsync.git] / clientserver.c
index 20d5253..b3d3ceb 100644 (file)
@@ -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);