components/openssh/patches/004-broken_bsm_api.patch
changeset 1612 3f2ec017627f
equal deleted inserted replaced
1611:6b7edd68c53f 1612:3f2ec017627f
       
     1 #
       
     2 # OpenSSH has special hacks in the code to deal with Solaris private API
       
     3 # changes in audit (au_close, getacna) for S11. This patch merely modifies the
       
     4 # configure script to consider any S11+ a 'newer Solaris' too, not just S11.
       
     5 #
       
     6 # We reported this problem to the OpenSSH upstream community on Dec 06 2013.
       
     7 # For more information, see https://bugzilla.mindrot.org/show_bug.cgi?id=2178
       
     8 #
       
     9 --- openssh-6.0p1/configure	2012-04-19 22:03:38.000000000 -0700
       
    10 +++ new/configure	2013-01-10 03:10:29.200564881 -0800
       
    11 @@ -9393,7 +9393,7 @@
       
    12  
       
    13  $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
       
    14  
       
    15 -		if test "$sol2ver" -eq 11; then
       
    16 +		if test "$sol2ver" -ge 11; then
       
    17  		   	SSHDLIBS="$SSHDLIBS -lscf"
       
    18  
       
    19  $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
       
    20 --- openssh-6.0p1/configure.ac	2013-12-05 05:31:15.809371483 -0800
       
    21 +++ new/configure.ac	2013-12-05 05:31:25.689099600 -0800
       
    22 @@ -1483,7 +1483,7 @@
       
    23  		# These are optional
       
    24  		AC_CHECK_FUNCS([getaudit_addr aug_get_machine])
       
    25  		AC_DEFINE([USE_BSM_AUDIT], [1], [Use BSM audit module])
       
    26 -		if test "$sol2ver" -eq 11; then
       
    27 +		if test "$sol2ver" -ge 11; then
       
    28  		   	SSHDLIBS="$SSHDLIBS -lscf"
       
    29                     	AC_DEFINE([BROKEN_BSM_API], [1], 
       
    30  		        	  [The system has incomplete BSM API])