patches for UnixWare v2.x pty (misc.c,configure.in)

tom at avatar.itc.nrcs.usda.gov tom at avatar.itc.nrcs.usda.gov
Tue Feb 13 07:04:55 EST 2001


I have attached two patches to the current source code. The first
addresses the pty problems with UnixWare 2.x with connecting with
SSH2. It sets the sigaction to SA_RESTART. This fixes UnixWare v2.x,
but haven't heard any feedback as to effects on other OS'.

The first patch is against misc.c.

The second patch adds a section "*-*-sysv4.2uw2*" to configure to
set the TEST_MINUS_S_SH shell and define USE_PIPES.

I suspect these same fixes apply to UnixWare 7.x, but I don't have
access to that build platform, or I would include them in the config
as well.

Let me know whether these can be applied against the current source
tree.

Thank you,
-Tom Rudnick

----------------/----------------------------------------------
Tom Rudnick     | USDA Natural Resources Conservation Service
Fort Collins,CO | tom at avatar.itc.nrcs.usda.gov  (970) 295-5427
** The 3rd Millennium started Jan 1, 2001. see:              **
**   http://aa.usno.navy.mil/AA/faq/docs/millennium.html     **
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-------------- next part --------------
--- misc.c.1.6	Mon Feb 12 11:11:15 2001
+++ misc.c	Sun Feb 11 22:33:22 2001
@@ -107,7 +107,7 @@
 	if (osa.sa_handler != act) {
 		memset(&sa, 0, sizeof sa);
 		sigemptyset(&sa.sa_mask);
-		sa.sa_flags = 0;
+		sa.sa_flags = SA_RESTART;
 		sa.sa_handler = act;
 		if (sigaction(sig, &sa, 0) == -1)
 			return (mysig_t) -1;
-------------- next part --------------
--- configure.in.1.235	Mon Feb 12 11:09:14 2001
+++ configure.in	Mon Feb 12 09:13:34 2001
@@ -196,6 +196,15 @@
 	mansubdir=cat
 	LIBS="$LIBS -lgen -lnsl -lucb"
 	;;
+*-*-sysv4.2uw2*)
+	CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+	LDFLAGS="$LDFLAGS -L/usr/local/lib"
+	MANTYPE='$(CATMAN)'
+	AC_DEFINE(USE_PIPES)
+	TEST_MINUS_S_SHELL="/usr/bin/ksh"
+	mansubdir=cat
+	enable_suid_ssh=no
+	;;
 *-*-sysv4.2*)
 	CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 	LDFLAGS="$LDFLAGS -L/usr/local/lib"


More information about the openssh-unix-dev mailing list