Blame SOURCES/stunnel-5.40-authpriv.patch

270793
diff --git a/doc/stunnel.8.in b/doc/stunnel.8.in
270793
index a00cc78..85a0123 100644
270793
--- a/doc/stunnel.8.in
270793
+++ b/doc/stunnel.8.in
270793
@@ -204,7 +204,7 @@ info (6), or debug (7).  All logs for the specified level and
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.
270793
diff --git a/doc/stunnel.html.in b/doc/stunnel.html.in
270793
index b7a0663..6bb01cd 100644
270793
--- a/doc/stunnel.html.in
270793
+++ b/doc/stunnel.html.in
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
 
270793
diff --git a/doc/stunnel.pod.in b/doc/stunnel.pod.in
270793
index 42d3a33..3806b5a 100644
270793
--- a/doc/stunnel.pod.in
270793
+++ b/doc/stunnel.pod.in
270793
@@ -192,7 +192,7 @@ info (6), or debug (7).  All logs for the specified level and
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.
270793
diff --git a/src/options.c b/src/options.c
270793
index 5881486..345d274 100644
270793
--- a/src/options.c
270793
+++ b/src/options.c
270793
@@ -1554,8 +1554,12 @@ NOEXPORT char *parse_service_option(CMD cmd, SERVICE_OPTIONS *section,
270793
     case CMD_BEGIN:
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;
270793
     case CMD_EXEC:
270793
         if(strcasecmp(opt, "debug"))