Make sure that the am_server variable is non-zero after parsing the

options we received over the socket.  (Thanks, Matt!)
This commit is contained in:
Wayne Davison committed 2007-02-16 01:20:29 +00:00
1 parent ba2133d6ad
commit 2a40b503c0
1 file changed
+1
+1
View 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;