The main ftp site for rsync is ftp://samba.anu.edu.au/pub/rsync
-A european mirror of this directory is available at
-ftp://sunsite.auc.dk/pub/unix/rsync
+Mirrors are available at:
+ftp://sunsite.auc.dk/pub/unix/rsync
+ftp://ftp.sunet.se/pub/unix/admin/rsync
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h unistd.h utime.h grp.h)
AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
-AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h)
+AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/mode.h)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
#include <sys/select.h>
#endif
+#ifdef HAVE_SYS_MODE_H
+/* apparently AIX needs this for S_ISLNK */
+#include <sys/mode.h>
+#endif
+
#ifdef HAVE_FNMATCH
#include <fnmatch.h>
#else
fprintf(FERROR,"Failed to dup/close : %s\n",strerror(errno));
exit_cleanup(1);
}
+ if (to_child_pipe[0] != STDIN_FILENO) close(to_child_pipe[0]);
+ if (from_child_pipe[1] != STDOUT_FILENO) close(from_child_pipe[1]);
execvp(command[0], command);
fprintf(FERROR,"Failed to exec %s : %s\n",
command[0],strerror(errno));