Commit 2a40b503 authored by Wayne Davison's avatar Wayne Davison

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

options we received over the socket.  (Thanks, Matt!)
parent ba2133d6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment