From: Wayne Davison Date: Tue, 16 Oct 2007 15:10:17 +0000 (+0000) Subject: Call set_allow_inc_recurse() for situations that don't call server_options(). X-Git-Tag: v3.0.0pre3~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea4e8cf8a19ef194eece2c4473b1b5017316f035;p=thirdparty%2Frsync.git Call set_allow_inc_recurse() for situations that don't call server_options(). --- diff --git a/main.c b/main.c index 154ddde7..454b7ea6 100644 --- a/main.c +++ b/main.c @@ -440,6 +440,7 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char **remote_argv, in if (read_batch) { int from_gen_pipe[2]; + set_allow_inc_recurse(); if (fd_pair(from_gen_pipe) < 0) { rsyserr(FERROR, errno, "pipe"); exit_cleanup(RERR_IPC); @@ -456,6 +457,7 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char **remote_argv, in * it on, but only if we're not batch processing. */ if (whole_file < 0 && !write_batch) whole_file = 1; + set_allow_inc_recurse(); ret = local_child(argc, args, f_in_p, f_out_p, child_main); #ifdef ICONV_CONST setup_iconv();