tom at avatar.itc.nrcs.usda.gov
2001-Feb-12 20:04 UTC
patches for UnixWare v2.x pty (misc.c,configure.in)
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"
On Mon, 12 Feb 2001 tom at avatar.itc.nrcs.usda.gov wrote:> > 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.Why the TEST_MINUS_S_SH change? It's autodetected just fine on UnixWare I tested on UnixWare 2.03, UnixWare 2.13, UnixWare 7.1.0 What are you seeing that USE_PIPES fixes? Ie. How can I duplicate the problem here.> > 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 ** > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >-- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net
On Mon, 12 Feb 2001 tom at avatar.itc.nrcs.usda.gov wrote: : 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'. i don't understand, why is SA_RESTART is needed?