patch: openssh 3.9p1 on hp-ux 10.20

From: Greg Wooledge (wooledg_at_eeg.ccf.org)
Date: 09/17/04

  • Next message: Derek Martin: "Re: Locking down ssh config in large env"
    Date: Fri, 17 Sep 2004 10:18:37 -0400
    To: openssh-unix-dev@mindrot.org, secureshell@securityfocus.com
    
    

    OpenSSH 3.9p1 does not compile on HP-UX 10.20 due to the code which was
    added in includes.h to work around HP-UX 11.11's behavior. The following
    patch lets it work on HP-UX 10.20. It should also work on HP-UX 11.11,
    but I can't test that (no HP-UX 11 boxes here).

    It uses code from http://www.faqs.org/faqs/hp/hpux-faq/section-213.html .
    The copyright at http://www.faqs.org/faqs/hp/hpux-faq/ is decidedly
    not free, but I'm hoping the copyright holder will permit the code
    to be used freely. I've CC'ed him on this mail.

    --- includes.h.orig Fri Sep 17 10:03:08 2004
    +++ includes.h Fri Sep 17 09:52:03 2004
    @@ -186,8 +186,20 @@
      * of getspnam when _INCLUDE__STDC__ is defined, so we unset it here.
      */
     #ifdef __hpux
    -# ifdef _INCLUDE__STDC__
    -# undef _INCLUDE__STDC__
    +# include <sys/privgrp.h>
    +# if defined(PRIV_PSET)
    +# define _hpux_11i
    +# elif defined(PRIV_SPUCTL)
    +# define __hpux_11x
    +# elif defined(PRIV_SERIALIZE)
    +# define __hpux_10x
    +# elif defined(PRIV_SETRUGID)
    +# define __hpux_9x
    +# endif
    +# if defined(_hpux_11i) || defined(__hpux_11x)
    +# ifdef _INCLUDE__STDC__
    +# undef _INCLUDE__STDC__
    +# endif
     # endif
     #endif
     


  • Next message: Derek Martin: "Re: Locking down ssh config in large env"

    Relevant Pages