Make sure that the am_server variable is non-zero after parsing the
authorWayne Davison <wayned@samba.org>
Fri, 16 Feb 2007 01:20:29 +0000 (01:20 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 16 Feb 2007 01:20:29 +0000 (01:20 +0000)
options we received over the socket.  (Thanks, Matt!)

clientserver.c

index 786c4be..fdd19cc 100644 (file)
@@ -626,6 +626,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
        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. */
+       am_server = 1; /* ditto */
        if (lp_ignore_errors(module_id))
                ignore_errors = 1;