]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- HPUX and Configure fixes from Lutz Jaenicke
authorDamien Miller <djm@mindrot.org>
Sat, 20 May 2000 05:33:44 +0000 (15:33 +1000)
committerDamien Miller <djm@mindrot.org>
Sat, 20 May 2000 05:33:44 +0000 (15:33 +1000)
   <Lutz.Jaenicke@aet.TU-Cottbus.DE>
 - Use mkinstalldirs script to make directories instead of non-portable
   "install -d". Suggested by Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>

ChangeLog
Makefile.in
configure.in
mkinstalldirs [new file with mode: 0755]
serverloop.c

index 9ca51be28d8e3f2294ae04a00e743a5522827af0..952e9b61a09728c39ade11a4a956c90f321517db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
  - Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
  - Don't touch utmp if USE_UTMPX defined
  - SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
+ - SIGCHLD fix for AIX and HPUX from Tom Bertelson <tbert@abac.com>
+ - HPUX and Configure fixes from Lutz Jaenicke 
+   <Lutz.Jaenicke@aet.TU-Cottbus.DE>
+ - Use mkinstalldirs script to make directories instead of non-portable 
+   "install -d". Suggested by Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
 
 20000518
  - Include Andre Lucas' fixprogs script. Forgot to "cvs add" it yesterday
index 0dc71c6cd1361dfaf2a89d4b56345a5f82112c3e..584f3054dca7923997066c83b2a0d762a2cde460 100644 (file)
@@ -109,11 +109,11 @@ catman-do:
        done
 
 install: manpages $(TARGETS)
-       $(INSTALL) -d $(DESTDIR)$(bindir)
-       $(INSTALL) -d $(DESTDIR)$(sbindir)
-       $(INSTALL) -d $(DESTDIR)$(mandir)
-       $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1
-       $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8
+       ./mkinstalldirs $(DESTDIR)$(bindir)
+       ./mkinstalldirs $(DESTDIR)$(sbindir)
+       ./mkinstalldirs $(DESTDIR)$(mandir)
+       ./mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1
+       ./mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8
        $(INSTALL) -m 4755 -s ssh $(DESTDIR)$(bindir)/ssh
        $(INSTALL) -s scp $(DESTDIR)$(bindir)/scp
        $(INSTALL) -s ssh-add $(DESTDIR)$(bindir)/ssh-add
@@ -132,7 +132,7 @@ install: manpages $(TARGETS)
        ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
 
        if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config -a ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \
-               $(INSTALL) -d $(DESTDIR)$(sysconfdir); \
+               ./mkinstalldirs $(DESTDIR)$(sysconfdir); \
                $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
                $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
        fi
index 60036c7b4f653b664d87779aec567c47c3b46959..a8b9794fd47075e0056fc77efaf995c1f1c8e2f0 100644 (file)
@@ -39,11 +39,9 @@ case "$host" in
        ;;
 *-*-hpux10*)
        if test -z "$GCC"; then
-               CFLAGS="$CFLAGS -Aa"
+               CFLAGS="$CFLAGS -Ae"
        fi
        CFLAGS="$CFLAGS -D_HPUX_SOURCE"
-       CFLAGS="$CFLAGS -I/usr/local/include"
-       LDFLAGS="$LDFLAGS -L/usr/local/lib"
        AC_DEFINE(IPADDR_IN_DISPLAY)
        AC_DEFINE(USE_UTMPX)
        AC_MSG_CHECKING(for HPUX trusted system password database)
@@ -64,8 +62,6 @@ case "$host" in
                CFLAGS="$CFLAGS -Ae"
        fi
        CFLAGS="$CFLAGS -D_HPUX_SOURCE"
-       CFLAGS="$CFLAGS -I/usr/local/include"
-       LDFLAGS="$LDFLAGS -L/usr/local/lib"
        AC_DEFINE(IPADDR_IN_DISPLAY)
        AC_DEFINE(USE_UTMPX)
        AC_MSG_CHECKING(for HPUX trusted system password database)
diff --git a/mkinstalldirs b/mkinstalldirs
new file mode 100755 (executable)
index 0000000..614ef33
--- /dev/null
@@ -0,0 +1,40 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain
+
+# $Id: mkinstalldirs,v 1.1 2000/05/20 05:33:45 damien Exp $
+
+errstatus=0
+
+for file
+do
+   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+   shift
+
+   pathcomp=
+   for d
+   do
+     pathcomp="$pathcomp$d"
+     case "$pathcomp" in
+       -* ) pathcomp=./$pathcomp ;;
+     esac
+
+     if test ! -d "$pathcomp"; then
+        echo "mkdir $pathcomp"
+
+        mkdir "$pathcomp" || lasterr=$?
+
+        if test ! -d "$pathcomp"; then
+         errstatus=$lasterr
+        fi
+     fi
+
+     pathcomp="$pathcomp/"
+   done
+done
+
+exit $errstatus
+
+# mkinstalldirs ends here
index 58e901de81222d961d5f18d0d160dc1266ed4f86..977ed41f6c56758d2a88c83ad0beb445b097fb7f 100644 (file)
@@ -85,7 +85,6 @@ sigchld_handler2(int sig)
        int save_errno = errno;
        debug("Received SIGCHLD.");
        child_terminated = 1;
-       signal(SIGCHLD, sigchld_handler2);
        errno = save_errno;
 }
 
@@ -650,6 +649,7 @@ server_loop2(void)
                        while ((pid = waitpid(-1, &status, WNOHANG)) > 0)
                                session_close_by_pid(pid, status);
                        child_terminated = 0;
+                       signal(SIGCHLD, sigchld_handler2);
                }
                channel_after_select(&readset, &writeset);
                process_input(&readset);