Commit 2adbcdc7 authored by Wayne Davison's avatar Wayne Davison

A couple am_sender checks (one negated) were not needed.

parent 7e5fa372
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment