X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/391516da51d9a3765b60d508dbe8fb18cb20b9a6..bdedced84b7f446f818efd4d25b8985285a50009:/pipe.c diff --git a/pipe.c b/pipe.c index 446afa7d..01306088 100644 --- a/pipe.c +++ b/pipe.c @@ -25,7 +25,6 @@ extern int am_sender; extern int am_server; extern int blocking_io; extern int orig_umask; -extern int write_batch; extern int filesfrom_fd; /** @@ -79,7 +78,8 @@ pid_t piped_child(char **command, int *f_in, int *f_out) 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); } @@ -127,10 +127,6 @@ pid_t local_child(int argc, char **argv, int *f_in, int *f_out, 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;