Blame SOURCES/stunnel-5.50-authpriv.patch

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

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).

270793
 
270793
-

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

270793
+

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

270793
 
270793
 

Case is ignored for both facilities and levels.

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