From 18f3cb6957b10cff7719e80553c17589d382dd3c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 16 Mar 2008 21:43:27 -0700 Subject: [PATCH] Changed stat() call to do_stat(). --- clientserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientserver.c b/clientserver.c index 6da1138f..a9a1af58 100644 --- 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); -- 2.34.1