components/stunnel/patches/stunnel-4.29-authpriv.patch
changeset 5098 77b8086c6247
parent 5097 4359ece036d8
child 5099 a14d6941c0c9
equal deleted inserted replaced
5097:4359ece036d8 5098:77b8086c6247
     1 # Make the 'authpriv' syslog facility the default on Solaris
       
     2 #
       
     3 
       
     4 diff -u -r stunnel-4.55.orig/doc/stunnel.fr.pod stunnel-4.55/doc/stunnel.fr.pod
       
     5 --- stunnel-4.55.orig/doc/stunnel.fr.pod	2012-12-02 11:00:24.000000000 -0800
       
     6 +++ stunnel-4.55/doc/stunnel.fr.pod	2013-03-21 22:30:02.672293057 -0700
       
     7 @@ -178,7 +178,7 @@
       
     8  B<debug = 7> donneront le maximum d'informations. La valeur par défaut
       
     9  est notice (5).
       
    10  
       
    11 -La facilité syslog «E<nbsp>daemonE<nbsp>» est utilisée, sauf si un autre nom est spécifié
       
    12 +La facilité syslog «E<nbsp>authprivE<nbsp>» est utilisée, sauf si un autre nom est spécifié
       
    13  (Win32 ne permet pas l'usage des facilités.)
       
    14  
       
    15  La casse est ignorée, aussi bien pour la facilité que pour le niveau.
       
    16 diff -u -r stunnel-4.55.orig/doc/stunnel.pod stunnel-4.55/doc/stunnel.pod
       
    17 --- stunnel-4.55.orig/doc/stunnel.pod	2013-01-13 09:25:20.000000000 -0800
       
    18 +++ stunnel-4.55/doc/stunnel.pod	2013-03-21 22:28:04.473314299 -0700
       
    19 @@ -184,7 +184,7 @@
       
    20  all levels numerically less than it will be shown.  Use I<debug = debug> or
       
    21  I<debug = 7> for greatest debugging output.  The default is notice (5).
       
    22  
       
    23 -The syslog facility 'daemon' will be used unless a facility name is supplied.
       
    24 +The syslog facility 'authpriv' will be used unless a facility name is supplied.
       
    25  (Facilities are not supported on Win32.)
       
    26  
       
    27  Case is ignored for both facilities and levels.
       
    28 diff -u -r stunnel-4.55.orig/src/options.c stunnel-4.55/src/options.c
       
    29 --- stunnel-4.55.orig/src/options.c	2013-02-02 08:20:32.000000000 -0800
       
    30 +++ stunnel-4.55/src/options.c	2013-03-21 22:27:13.163038368 -0700
       
    31 @@ -185,8 +185,12 @@
       
    32      case CMD_BEGIN:
       
    33          new_global_options.debug_level=LOG_NOTICE;
       
    34  #if !defined (USE_WIN32) && !defined (__vms)
       
    35 +#if defined(LOG_AUTHPRIV)
       
    36 +        new_global_options.facility=LOG_AUTHPRIV;
       
    37 +#else
       
    38          new_global_options.facility=LOG_DAEMON;
       
    39  #endif
       
    40 +#endif
       
    41          break;
       
    42      case CMD_EXEC:
       
    43          if(strcasecmp(opt, "debug"))