Hi, Attached is a patch to 1.2.1pre18 that includes a number of portability changes, and more a more complete HPUX10.20 implementation. Thanks to Ben Taylor's utmpx patch, utmpx and wtmpx support are now in for HP, with a few caveats. It compiles cleanly on HPUX10.20 with gcc, cleanly on Linux, and with a few minor warnings on Solaris 2.6. Most compat changes are made via autoconf which should help further portability a little. However, with OpenBSD, Linux, Solaris and HPUX running I'm out of other platforms to try right now. The patch needs to be applied against raw 1.2.1pre18, as it includes both Ben's patch and the simplest IPV6 change. Changes and TODOs follow. I look forward to your bitter criticism, or even some constructive feedback... Ta, -Andre Lucas Instinet Global Services Changes (mostly HPSUX workarounds :-) ) - Ben Taylor's utmpx patch, with a few hacks for HPUX compat - Filled out utmp struct as well for above (HP commands still use utmp...) - innetgr() protos if required - #ifdef blocks for innetgr lib function - *snprintf proto definitions if not present (HP) - utmpx compatibility hacks - search for xauth - check for updwtmpx lib func (HP) - check for ttcompat.h (HP) - check environment for mail directory if no maillock.h - variable for custom rsh path (HP uses remsh) - include bsd-login.h for systems w/o login lib func - X11 port forwarding on HPUX - macro to use setreuid() instead of seteuid(), which HP lacks *** Someone shout if this has any security implications ! *** - autoconf config.sub and config.guess (AC_CANONICAL_HOST) added - various compiler warnings squashed. I hate warnings. Grr. TODO: - HP utmp/utmpx support is still broken, ttyslot() seems to return garbage for ptys... anyone? :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: openssh-1.2.1pre18-hpux1020-a4.patch.gz Type: application/x-gzip Size: 29217 bytes Desc: not available Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/19991220/84bce5d9/attachment.bin
Er, that's ' a more complete HPUX10.20 implementation'. Oops. Andre Lucas wrote:> > Hi, > > Attached is a patch to 1.2.1pre18 that includes a number of portability > changes, and more a more complete HPUX10.20 implementation. Thanks to > Ben Taylor's utmpx patch, utmpx and wtmpx support are now in for HP, > with a few caveats. It compiles cleanly on HPUX10.20 with gcc, cleanly > on Linux, and with a few minor warnings on Solaris 2.6. > > Most compat changes are made via autoconf which should help further > portability a little. However, with OpenBSD, Linux, Solaris and HPUX > running I'm out of other platforms to try right now. > > The patch needs to be applied against raw 1.2.1pre18, as it includes > both Ben's patch and the simplest IPV6 change. Changes and TODOs follow. > I look forward to your bitter criticism, or even some constructive > feedback... > > Ta, > -Andre Lucas > Instinet Global Services > > Changes (mostly HPSUX workarounds :-) ) > - Ben Taylor's utmpx patch, with a few hacks for HPUX compat > - Filled out utmp struct as well for above (HP commands still use > utmp...) > - innetgr() protos if required > - #ifdef blocks for innetgr lib function > - *snprintf proto definitions if not present (HP) > - utmpx compatibility hacks > - search for xauth > - check for updwtmpx lib func (HP) > - check for ttcompat.h (HP) > - check environment for mail directory if no maillock.h > - variable for custom rsh path (HP uses remsh) > - include bsd-login.h for systems w/o login lib func > - X11 port forwarding on HPUX > - macro to use setreuid() instead of seteuid(), which HP lacks *** > Someone shout if this has any security implications ! *** > - autoconf config.sub and config.guess (AC_CANONICAL_HOST) added > - various compiler warnings squashed. I hate warnings. Grr. > > TODO: > - HP utmp/utmpx support is still broken, ttyslot() seems to return > garbage for ptys... anyone? :-) > > ------------------------------------------------------------------------ > Name: openssh-1.2.1pre18-hpux1020-a4.patch.gz > openssh-1.2.1pre18-hpux1020-a4.patch.gz Type: application/x-gzip > Encoding: base64-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2471 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/19991220/057e39cb/attachment.bin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 20 Dec 1999, Andre Lucas wrote:> Hi, > > Attached is a patch to 1.2.1pre18 that includes a number > of portability changes, and more a more complete HPUX10.20 > implementation. Thanks to Ben Taylor's utmpx patch, utmpx and wtmpx > support are now in for HP, with a few caveats. It compiles cleanly > on HPUX10.20 with gcc, cleanly on Linux, and with a few minor > warnings on Solaris 2.6.Excellent! Unfortunatly I have already merged your peliminary patch :( 1.2.1pre19 should be released very soon. It includes a somewhat modified version of your original patch. I have brought some of the changes you made out to ./configure directives because they are useful on other platforms. No doubt I have broken your patch in the process. Since I am on holidays as of tomorrow afternoon I will have a bit more time to work on OpenSSH over the coming week (modulo xmas). Thanks, Damien Miller - -- | "Bombay is 250ms from New York in the new world order" - Alan Cox | Damien Miller - http://www.mindrot.org/ | Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.0 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE4X1EDormJ9RG1dI8RAgrbAKDKrbuWxpmhE2EWLTXySvglUZ+Y3ACdH/45 4Z+EyrZ9dB5DRNZmlIjlzXs=C7d8 -----END PGP SIGNATURE-----