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
Improvements to increase clarity, fix misstatements, add missing
[rsync/rsync.git]
/
clientserver.c
diff --git
a/clientserver.c
b/clientserver.c
index
95c1601
..
e557309
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-629,6
+629,11
@@
static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
if (lp_ignore_errors(module_id))
ignore_errors = 1;
if (lp_ignore_errors(module_id))
ignore_errors = 1;
+ if (lp_fake_super(i))
+ am_root = -1;
+ else if (am_root < 0) /* Treat --fake-super from client as --super. */
+ am_root = 2;
+
if (filesfrom_fd == 0)
filesfrom_fd = f_in;
if (filesfrom_fd == 0)
filesfrom_fd = f_in;
@@
-682,7
+687,7
@@
static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
if (!ret || err_msg) {
if (err_msg)
if (!ret || err_msg) {
if (err_msg)
- rwrite(FERROR, err_msg, strlen(err_msg));
+ rwrite(FERROR, err_msg, strlen(err_msg)
, 0
);
else
option_error();
msleep(400);
else
option_error();
msleep(400);