Set ignore_errors variable based on lp_ignore_errors(module_id).
authorWayne Davison <wayned@samba.org>
Mon, 25 Dec 2006 17:49:19 +0000 (17:49 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 25 Dec 2006 17:49:19 +0000 (17:49 +0000)
clientserver.c

index b777125..0f92451 100644 (file)
@@ -31,6 +31,7 @@ extern int am_server;
 extern int am_daemon;
 extern int am_root;
 extern int rsync_port;
+extern int ignore_errors;
 extern int kluge_around_eof;
 extern int daemon_over_rsh;
 extern int sanitize_paths;
@@ -626,6 +627,8 @@ 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. */
+       if (lp_ignore_errors(module_id))
+               ignore_errors = 1;
 
        if (filesfrom_fd == 0)
                filesfrom_fd = f_in;