From: Wayne Davison Date: Thu, 7 Feb 2008 00:13:37 +0000 (-0800) Subject: A daemon needs to call setup_iconv() after parsing the options X-Git-Tag: v3.0.0pre9~10 X-Git-Url: http://git.samba.org/samba.git/?p=rsync.git;a=commitdiff_plain;h=3e8fe565ede6ab0fd9b84639cac9d7ea3fb0dcf2 A daemon needs to call setup_iconv() after parsing the options it receives. --- diff --git a/clientserver.c b/clientserver.c index 1e3af63a..19c2a257 100644 --- a/clientserver.c +++ b/clientserver.c @@ -703,6 +703,10 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) if (write_batch < 0) dry_run = 1; +#ifdef ICONV_CONST + setup_iconv(); +#endif + if (lp_fake_super(i)) am_root = -1; else if (am_root < 0) /* Treat --fake-super from client as --super. */