Changed stat() call to do_stat().
authorWayne Davison <wayned@samba.org>
Mon, 17 Mar 2008 04:43:27 +0000 (21:43 -0700)
committerWayne Davison <wayned@samba.org>
Mon, 17 Mar 2008 04:44:33 +0000 (21:44 -0700)
clientserver.c

index 6da1138..a9a1af5 100644 (file)
@@ -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);