X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/62a6b8df72d18f0b13462ee7ac33f9a8a46ef0b5..d348d5fd5ffb55ccddb11d5428a7a3a3445ce037:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 1e3af63a..71cb9791 100644 --- a/clientserver.c +++ b/clientserver.c @@ -245,7 +245,7 @@ int start_inband_exchange(int f_in, int f_out, const char *user, int argc, char rprintf(FERROR, "internal: args[] overflowed in do_cmd()\n"); exit_cleanup(RERR_SYNTAX); } - if (list_only && strncmp(*argv, modname, modlen) == 0 + if (strncmp(*argv, modname, modlen) == 0 && argv[0][modlen] == '\0') sargs[sargc++] = modname; /* we send "modname/" */ else @@ -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. */