X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/875a13b42c8fa16811e429e3773ee942d3873d69..0b68d6b6f4aba4ffe577551320269cbce4a5c7bb:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 95c16016..7c1b81f8 100644 --- a/clientserver.c +++ b/clientserver.c @@ -629,6 +629,11 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) if (lp_ignore_errors(module_id)) ignore_errors = 1; + if (lp_fake_super(i)) + am_root = -1; + else if (am_root < 0) /* Treat --fake-super from client as --super. */ + am_root = 2; + if (filesfrom_fd == 0) filesfrom_fd = f_in;