Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abcfd8
)
Changed stat() call to do_stat().
author
Wayne Davison
<wayned@samba.org>
Mon, 17 Mar 2008 04:43:27 +0000
(21:43 -0700)
committer
Wayne Davison
<wayned@samba.org>
Mon, 17 Mar 2008 04:44:33 +0000
(21:44 -0700)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
6da1138
..
a9a1af5
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-691,7
+691,7
@@
static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
munge_symlinks = !use_chroot || module_dirlen;
if (munge_symlinks) {
STRUCT_STAT st;
- if (stat(SYMLINK_PREFIX, &st) == 0 && S_ISDIR(st.st_mode)) {
+ if (
do_
stat(SYMLINK_PREFIX, &st) == 0 && S_ISDIR(st.st_mode)) {
rprintf(FLOG, "Symlink munging is unsupported when a %s directory exists.\n",
SYMLINK_PREFIX);
io_printf(f_out, "@ERROR: daemon security issue -- contact admin\n", name);