A daemon needs to call setup_iconv() after parsing the options
authorWayne Davison <wayned@samba.org>
Thu, 7 Feb 2008 00:13:37 +0000 (16:13 -0800)
committerWayne Davison <wayned@samba.org>
Thu, 7 Feb 2008 00:13:37 +0000 (16:13 -0800)
it receives.

clientserver.c

index 1e3af63a38b4afe0a0ce3c8a375d820cf6a24f14..19c2a2571ce5064db2de15bf300d418bb88d53ec 100644 (file)
@@ -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;
 
        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. */
        if (lp_fake_super(i))
                am_root = -1;
        else if (am_root < 0) /* Treat --fake-super from client as --super. */