Blame SOURCES/stunnel-5.50-authpriv.patch

72fc89
diff -up stunnel-5.50/doc/stunnel.8.in.authpriv stunnel-5.50/doc/stunnel.8.in
72fc89
--- stunnel-5.50/doc/stunnel.8.in.authpriv	2018-12-02 23:47:20.000000000 +0100
72fc89
+++ stunnel-5.50/doc/stunnel.8.in	2019-01-14 12:15:05.135100163 +0100
72fc89
@@ -200,7 +200,7 @@ info (6), or debug (7).  All logs for th
72fc89
 all levels numerically less than it will be shown.  Use \fIdebug = debug\fR or
72fc89
 \&\fIdebug = 7\fR for greatest debugging output.  The default is notice (5).
72fc89
 .Sp
72fc89
-The syslog facility 'daemon' will be used unless a facility name is supplied.
72fc89
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
72fc89
 (Facilities are not supported on Win32.)
72fc89
 .Sp
72fc89
 Case is ignored for both facilities and levels.
72fc89
diff -up stunnel-5.50/doc/stunnel.html.in.authpriv stunnel-5.50/doc/stunnel.html.in
72fc89
--- stunnel-5.50/doc/stunnel.html.in.authpriv	2018-12-02 23:47:21.000000000 +0100
72fc89
+++ stunnel-5.50/doc/stunnel.html.in	2019-01-14 12:15:05.136100146 +0100
72fc89
@@ -244,7 +244,7 @@
72fc89
 
72fc89
 

Level is one of the syslog level names or numbers emerg (0), alert (1), crit (2), err (3), warning (4), notice (5), info (6), or debug (7). All logs for the specified level and all levels numerically less than it will be shown. Use debug = debug or debug = 7 for greatest debugging output. The default is notice (5).

72fc89
 
72fc89
-

The syslog facility 'daemon' will be used unless a facility name is supplied. (Facilities are not supported on Win32.)

72fc89
+

The syslog facility 'authpriv' will be used unless a facility name is supplied. (Facilities are not supported on Win32.)

72fc89
 
72fc89
 

Case is ignored for both facilities and levels.

72fc89
 
72fc89
diff -up stunnel-5.50/doc/stunnel.pod.in.authpriv stunnel-5.50/doc/stunnel.pod.in
72fc89
--- stunnel-5.50/doc/stunnel.pod.in.authpriv	2018-12-02 23:47:18.000000000 +0100
72fc89
+++ stunnel-5.50/doc/stunnel.pod.in	2019-01-14 12:15:05.136100146 +0100
72fc89
@@ -192,7 +192,7 @@ info (6), or debug (7).  All logs for th
72fc89
 all levels numerically less than it will be shown.  Use I<debug = debug> or
72fc89
 I<debug = 7> for greatest debugging output.  The default is notice (5).
72fc89
 
72fc89
-The syslog facility 'daemon' will be used unless a facility name is supplied.
72fc89
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
72fc89
 (Facilities are not supported on Win32.)
72fc89
 
72fc89
 Case is ignored for both facilities and levels.
72fc89
diff -up stunnel-5.50/src/options.c.authpriv stunnel-5.50/src/options.c
72fc89
--- stunnel-5.50/src/options.c.authpriv	2019-01-14 12:15:05.136100146 +0100
72fc89
+++ stunnel-5.50/src/options.c	2019-01-14 12:16:25.537727511 +0100
72fc89
@@ -1745,8 +1745,12 @@ NOEXPORT char *parse_service_option(CMD
72fc89
     case CMD_SET_DEFAULTS:
72fc89
         section->log_level=LOG_NOTICE;
72fc89
 #if !defined (USE_WIN32) && !defined (__vms)
72fc89
+#if defined(LOG_AUTHPRIV)
72fc89
+        new_global_options.log_facility=LOG_AUTHPRIV;
72fc89
+#else
72fc89
         new_global_options.log_facility=LOG_DAEMON;
72fc89
 #endif
72fc89
+#endif
72fc89
         break;
72fc89
     case CMD_SET_COPY:
72fc89
         section->log_level=new_service_options.log_level;