Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Fixed the --help and --version output to avoid using embedded
[rsync/rsync.git]
/
pipe.c
diff --git
a/pipe.c
b/pipe.c
index
941e5d8
..
d4bf113
100644
(file)
--- a/
pipe.c
+++ b/
pipe.c
@@
-25,11
+25,10
@@
extern int am_sender;
extern int am_server;
extern int blocking_io;
extern int orig_umask;
extern int am_server;
extern int blocking_io;
extern int orig_umask;
-extern int write_batch;
extern int filesfrom_fd;
/**
extern int filesfrom_fd;
/**
- * Create a child connected to us
e on
stdin/stdout.
+ * Create a child connected to us
via its
stdin/stdout.
*
* This is derived from CVS code
*
*
* This is derived from CVS code
*
@@
-79,8
+78,7
@@
pid_t piped_child(char **command, int *f_in, int *f_out)
if (blocking_io > 0)
set_blocking(STDOUT_FILENO);
execvp(command[0], command);
if (blocking_io > 0)
set_blocking(STDOUT_FILENO);
execvp(command[0], command);
- rsyserr(FERROR, errno, "Failed to exec %s",
- safe_fname(command[0]));
+ rsyserr(FERROR, errno, "Failed to exec %s", command[0]);
exit_cleanup(RERR_IPC);
}
exit_cleanup(RERR_IPC);
}
@@
-128,10
+126,6
@@
pid_t local_child(int argc, char **argv, int *f_in, int *f_out,
am_sender = !am_sender;
am_server = 1;
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;
if (!am_sender)
filesfrom_fd = -1;