summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in12
-rw-r--r--configure.in6
-rwxr-xr-xmkinstalldirs40
-rw-r--r--serverloop.c2
5 files changed, 53 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ca51be28..952e9b61a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
2 - Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de> 2 - Xauth fix from Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
3 - Don't touch utmp if USE_UTMPX defined 3 - Don't touch utmp if USE_UTMPX defined
4 - SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com> 4 - SunOS 4.x support from Todd C. Miller <Todd.Miller@courtesan.com>
5 - SIGCHLD fix for AIX and HPUX from Tom Bertelson <tbert@abac.com>
6 - HPUX and Configure fixes from Lutz Jaenicke
7 <Lutz.Jaenicke@aet.TU-Cottbus.DE>
8 - Use mkinstalldirs script to make directories instead of non-portable
9 "install -d". Suggested by Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
5 10
620000518 1120000518
7 - Include Andre Lucas' fixprogs script. Forgot to "cvs add" it yesterday 12 - Include Andre Lucas' fixprogs script. Forgot to "cvs add" it yesterday
diff --git a/Makefile.in b/Makefile.in
index 0dc71c6cd..584f3054d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -109,11 +109,11 @@ catman-do:
109 done 109 done
110 110
111install: manpages $(TARGETS) 111install: manpages $(TARGETS)
112 $(INSTALL) -d $(DESTDIR)$(bindir) 112 ./mkinstalldirs $(DESTDIR)$(bindir)
113 $(INSTALL) -d $(DESTDIR)$(sbindir) 113 ./mkinstalldirs $(DESTDIR)$(sbindir)
114 $(INSTALL) -d $(DESTDIR)$(mandir) 114 ./mkinstalldirs $(DESTDIR)$(mandir)
115 $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1 115 ./mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1
116 $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8 116 ./mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8
117 $(INSTALL) -m 4755 -s ssh $(DESTDIR)$(bindir)/ssh 117 $(INSTALL) -m 4755 -s ssh $(DESTDIR)$(bindir)/ssh
118 $(INSTALL) -s scp $(DESTDIR)$(bindir)/scp 118 $(INSTALL) -s scp $(DESTDIR)$(bindir)/scp
119 $(INSTALL) -s ssh-add $(DESTDIR)$(bindir)/ssh-add 119 $(INSTALL) -s ssh-add $(DESTDIR)$(bindir)/ssh-add
@@ -132,7 +132,7 @@ install: manpages $(TARGETS)
132 ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 132 ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
133 133
134 if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config -a ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ 134 if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config -a ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \
135 $(INSTALL) -d $(DESTDIR)$(sysconfdir); \ 135 ./mkinstalldirs $(DESTDIR)$(sysconfdir); \
136 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ 136 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
137 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ 137 $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \
138 fi 138 fi
diff --git a/configure.in b/configure.in
index 60036c7b4..a8b9794fd 100644
--- a/configure.in
+++ b/configure.in
@@ -39,11 +39,9 @@ case "$host" in
39 ;; 39 ;;
40*-*-hpux10*) 40*-*-hpux10*)
41 if test -z "$GCC"; then 41 if test -z "$GCC"; then
42 CFLAGS="$CFLAGS -Aa" 42 CFLAGS="$CFLAGS -Ae"
43 fi 43 fi
44 CFLAGS="$CFLAGS -D_HPUX_SOURCE" 44 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
45 CFLAGS="$CFLAGS -I/usr/local/include"
46 LDFLAGS="$LDFLAGS -L/usr/local/lib"
47 AC_DEFINE(IPADDR_IN_DISPLAY) 45 AC_DEFINE(IPADDR_IN_DISPLAY)
48 AC_DEFINE(USE_UTMPX) 46 AC_DEFINE(USE_UTMPX)
49 AC_MSG_CHECKING(for HPUX trusted system password database) 47 AC_MSG_CHECKING(for HPUX trusted system password database)
@@ -64,8 +62,6 @@ case "$host" in
64 CFLAGS="$CFLAGS -Ae" 62 CFLAGS="$CFLAGS -Ae"
65 fi 63 fi
66 CFLAGS="$CFLAGS -D_HPUX_SOURCE" 64 CFLAGS="$CFLAGS -D_HPUX_SOURCE"
67 CFLAGS="$CFLAGS -I/usr/local/include"
68 LDFLAGS="$LDFLAGS -L/usr/local/lib"
69 AC_DEFINE(IPADDR_IN_DISPLAY) 65 AC_DEFINE(IPADDR_IN_DISPLAY)
70 AC_DEFINE(USE_UTMPX) 66 AC_DEFINE(USE_UTMPX)
71 AC_MSG_CHECKING(for HPUX trusted system password database) 67 AC_MSG_CHECKING(for HPUX trusted system password database)
diff --git a/mkinstalldirs b/mkinstalldirs
new file mode 100755
index 000000000..614ef33d8
--- /dev/null
+++ b/mkinstalldirs
@@ -0,0 +1,40 @@
1#! /bin/sh
2# mkinstalldirs --- make directory hierarchy
3# Author: Noah Friedman <friedman@prep.ai.mit.edu>
4# Created: 1993-05-16
5# Public domain
6
7# $Id: mkinstalldirs,v 1.1 2000/05/20 05:33:45 damien Exp $
8
9errstatus=0
10
11for file
12do
13 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
14 shift
15
16 pathcomp=
17 for d
18 do
19 pathcomp="$pathcomp$d"
20 case "$pathcomp" in
21 -* ) pathcomp=./$pathcomp ;;
22 esac
23
24 if test ! -d "$pathcomp"; then
25 echo "mkdir $pathcomp"
26
27 mkdir "$pathcomp" || lasterr=$?
28
29 if test ! -d "$pathcomp"; then
30 errstatus=$lasterr
31 fi
32 fi
33
34 pathcomp="$pathcomp/"
35 done
36done
37
38exit $errstatus
39
40# mkinstalldirs ends here
diff --git a/serverloop.c b/serverloop.c
index 58e901de8..977ed41f6 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -85,7 +85,6 @@ sigchld_handler2(int sig)
85 int save_errno = errno; 85 int save_errno = errno;
86 debug("Received SIGCHLD."); 86 debug("Received SIGCHLD.");
87 child_terminated = 1; 87 child_terminated = 1;
88 signal(SIGCHLD, sigchld_handler2);
89 errno = save_errno; 88 errno = save_errno;
90} 89}
91 90
@@ -650,6 +649,7 @@ server_loop2(void)
650 while ((pid = waitpid(-1, &status, WNOHANG)) > 0) 649 while ((pid = waitpid(-1, &status, WNOHANG)) > 0)
651 session_close_by_pid(pid, status); 650 session_close_by_pid(pid, status);
652 child_terminated = 0; 651 child_terminated = 0;
652 signal(SIGCHLD, sigchld_handler2);
653 } 653 }
654 channel_after_select(&readset, &writeset); 654 channel_after_select(&readset, &writeset);
655 process_input(&readset); 655 process_input(&readset);