Mailing List Archive

Portability hacks + alpha HPUX1020 port
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? :-)
Re: Portability hacks + alpha HPUX1020 port [ In reply to ]
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
Re: Portability hacks + alpha HPUX1020 port [ In reply to ]
On Mon, Dec 20, 1999 at 06:21:58PM +0000, Andre Lucas wrote:
> Er, that's ' a more complete HPUX10.20 implementation'. Oops.

Hi,

maybe you just forgot the attachement with the patch itself (like I do
with approx half of the attachments I want to send :-)?

Best regards,
Lutz

> > ------------------------------------------------------------------------
> > Name: openssh-1.2.1pre18-hpux1020-a4.patch.gz
> > openssh-1.2.1pre18-hpux1020-a4.patch.gz Type: application/x-gzip
> > Encoding: base64
--
Lutz Jaenicke Lutz.Jaenicke@aet.TU-Cottbus.DE
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
Re: Portability hacks + alpha HPUX1020 port [ In reply to ]
Nope. You had me shouting "doh" at myself for a few seconds, but it's
definitely there in the post. It wouldn't be the first time I'd
forgotten the attachment, though.

Is anyone else having trouble with the .gz file? Normally I would post
patches as regular text pasted into the mail, but this one is 140KB as
it has some new files and quite a few changes. I don't want to get
flames for sending another huge post today!

-Andre


Lutz Jaenicke wrote:
>
> On Mon, Dec 20, 1999 at 06:21:58PM +0000, Andre Lucas wrote:
> > Er, that's ' a more complete HPUX10.20 implementation'. Oops.
>
> Hi,
>
> maybe you just forgot the attachement with the patch itself (like I do
> with approx half of the attachments I want to send :-)?
>
> Best regards,
> Lutz
>
> > > ------------------------------------------------------------------------
> > > Name: openssh-1.2.1pre18-hpux1020-a4.patch.gz
> > > openssh-1.2.1pre18-hpux1020-a4.patch.gz Type: application/x-gzip
> > > Encoding: base64
> --
> Lutz Jaenicke Lutz.Jaenicke@aet.TU-Cottbus.DE
> BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
> Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
> Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
Re: Portability hacks + alpha HPUX1020 port [ In reply to ]
-----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@mindrot.org (home) -or- djm@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-----
Re: Portability hacks + alpha HPUX1020 port [ In reply to ]
Ok, I look forward to seeing what you've added.

A lot of people are seeing multiple copies of my first post in this
thread. It's a little hard for me to know why it happens - a thousand
people use that mail gateway at Instinet and send attachments all day
long, noone else gets this - but I'll apologise anyway as it's a large
attachment.

Is there any way the list administrator can investigate this please?
It's not just my mail that people are getting more than once (I have two
copies of your response, for example) but mine is the one pissing most
people off, because of its size.

Here's hoping this one doesn't loop. Please, guys: The looping isn't my
fault, don't killfile me just yet...

Ta,
-André

Damien Miller wrote:
>
> -----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@mindrot.org (home) -or- djm@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-----
Re: Portability hacks + alpha HPUX1020 port [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 21 Dec 1999, Andre Lucas wrote:

> Ok, I look forward to seeing what you've added.

I will be uploading it in a moment.

You can grab it from:

http://violet.ibs.com.au/openssh/files/openssh-1.2.1pre19.tar.gz

Please don't publicise this URL. Despite it being easy to figure
out, I would prefer that general users use a mirror.

> A lot of people are seeing multiple copies of my first post in
> this thread. It's a little hard for me to know why it happens
> - a thousand people use that mail gateway at Instinet and send
> attachments all day long, noone else gets this - but I'll apologise
> anyway as it's a large attachment.
>
> Is there any way the list administrator can investigate this please?
> It's not just my mail that people are getting more than once (I have two
> copies of your response, for example) but mine is the one pissing most
> people off, because of its size.
>
> Here's hoping this one doesn't loop. Please, guys: The looping isn't
> my fault, don't killfile me just yet...

I host the list from one of my home machines. Can you send few
examples of the looped email with full headers and I will track it
down.

Anyone have problems?

Thanks,
Damien

- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4X3iBormJ9RG1dI8RAgaFAJ95SHx6EqbsLMtiSw1X8MvhlS2FtwCggi/z
yLmtUqxpEaS9Ff3gKlddQH0=
=2A9i
-----END PGP SIGNATURE-----