From 773f2bd47f48b737cef2852341b86f5d086a5fef Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Jul 1997 01:12:36 +0000 Subject: [PATCH] minor updates --- README | 5 +++-- configure.in | 2 +- rsync.h | 5 +++++ util.c | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README b/README index 8e3558d0..9a0a60d0 100644 --- a/README +++ b/README @@ -96,6 +96,7 @@ AVAILABILITY 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 diff --git a/configure.in b/configure.in index 4ab86353..167f85bb 100644 --- a/configure.in +++ b/configure.in @@ -15,7 +15,7 @@ AC_HEADER_TIME 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) diff --git a/rsync.h b/rsync.h index cda1621f..eb3c01b2 100644 --- a/rsync.h +++ b/rsync.h @@ -140,6 +140,11 @@ #include #endif +#ifdef HAVE_SYS_MODE_H +/* apparently AIX needs this for S_ISLNK */ +#include +#endif + #ifdef HAVE_FNMATCH #include #else diff --git a/util.c b/util.c index 644553e6..4301465e 100644 --- a/util.c +++ b/util.c @@ -131,6 +131,8 @@ int piped_child(char **command,int *f_in,int *f_out) 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)); -- 2.34.1