From: Wayne Davison Date: Wed, 21 Jul 2004 20:17:02 +0000 (+0000) Subject: A couple am_sender checks (one negated) were not needed. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/2adbcdc7ea7e708a903ed904ee25d4cb27c97e2e A couple am_sender checks (one negated) were not needed. --- diff --git a/main.c b/main.c index d609ea58..085e5785 100644 --- a/main.c +++ b/main.c @@ -392,7 +392,7 @@ static void do_server_sender(int f_in, int f_out, int argc,char *argv[]) (long)getpid()); } - if (am_daemon && lp_write_only(module_id) && am_sender) { + if (am_daemon && lp_write_only(module_id)) { rprintf(FERROR, "ERROR: module is write only\n"); exit_cleanup(RERR_SYNTAX); return; @@ -529,7 +529,7 @@ static void do_server_recv(int f_in, int f_out, int argc,char *argv[]) argc, (long)getpid()); } - if (am_daemon && lp_read_only(module_id) && !am_sender) { + if (am_daemon && lp_read_only(module_id)) { rprintf(FERROR,"ERROR: module is read only\n"); exit_cleanup(RERR_SYNTAX); return;