minor updates
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Jul 1997 01:12:36 +0000 (01:12 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 10 Jul 1997 01:12:36 +0000 (01:12 +0000)
README
configure.in
rsync.h
util.c

diff --git a/README b/README
index 8e3558d..9a0a60d 100644 (file)
--- 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
index 4ab8635..167f85b 100644 (file)
@@ -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 cda1621..eb3c01b 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 #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
diff --git a/util.c b/util.c
index 644553e..4301465 100644 (file)
--- 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));