extern int am_server;
extern int blocking_io;
extern int orig_umask;
-extern int write_batch;
extern int filesfrom_fd;
/**
- * Create a child connected to use on stdin/stdout.
+ * Create a child connected to us via its stdin/stdout.
*
* This is derived from CVS code
*
if (blocking_io > 0)
set_blocking(STDOUT_FILENO);
execvp(command[0], command);
- rsyserr(FERROR, errno, "Failed to exec %s", command[0]);
+ rsyserr(FERROR, errno, "Failed to exec %s",
+ safe_fname(command[0]));
exit_cleanup(RERR_IPC);
}
am_sender = !am_sender;
am_server = 1;
- /* The server side never writes the batch, even if it
- * is local (it makes the logic easier elsewhere). */
- write_batch = 0;
-
if (!am_sender)
filesfrom_fd = -1;