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
Tweaked the O_BINARY code to the latest idiom.
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
d158a2f
..
8a26ed5
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-33,6
+33,7
@@
extern int verbose;
extern int rsync_port;
char *auth_user;
extern int sanitize_paths;
extern int rsync_port;
char *auth_user;
extern int sanitize_paths;
+extern int filesfrom_fd;
/**
* Run a client connected to an rsyncd. The alternative to this
/**
* Run a client connected to an rsyncd. The alternative to this
@@
-424,6
+425,9
@@
static int rsync_module(int f_in, int f_out, int i)
argp = argv;
ret = parse_arguments(&argc, (const char ***) &argp, 0);
argp = argv;
ret = parse_arguments(&argc, (const char ***) &argp, 0);
+ if (filesfrom_fd == 0)
+ filesfrom_fd = f_in;
+
if (request) {
if (*auth_user) {
rprintf(FINFO,"rsync %s %s from %s@%s (%s)\n",
if (request) {
if (*auth_user) {
rprintf(FINFO,"rsync %s %s from %s@%s (%s)\n",