From: Wayne Davison Date: Mon, 17 Mar 2008 04:43:27 +0000 (-0700) Subject: Changed stat() call to do_stat(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/18f3cb6957b10cff7719e80553c17589d382dd3c Changed stat() call to do_stat(). --- 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);