stunnel/stunnel-5-authpriv.patch

53 lines
2.9 KiB
Diff
Raw Normal View History

2015-03-30 19:41:21 +00:00
diff -urNp stunnel-5.12/doc/stunnel.8 stunnel-5.12-patched/doc/stunnel.8
--- stunnel-5.12/doc/stunnel.8 2015-03-30 15:38:22.517507692 -0400
+++ stunnel-5.12-patched/doc/stunnel.8 2015-03-30 15:29:30.440215517 -0400
@@ -202,7 +202,7 @@ info (6), or debug (7). All logs for th
all levels numerically less than it will be shown. Use \fIdebug = debug\fR or
\&\fIdebug = 7\fR for greatest debugging output. The default is notice (5).
.Sp
-The syslog facility 'daemon' will be used unless a facility name is supplied.
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
(Facilities are not supported on Win32.)
.Sp
Case is ignored for both facilities and levels.
2015-03-30 19:41:21 +00:00
diff -urNp stunnel-5.12/doc/stunnel.html stunnel-5.12-patched/doc/stunnel.html
--- stunnel-5.12/doc/stunnel.html 2015-03-30 15:38:22.517507692 -0400
+++ stunnel-5.12-patched/doc/stunnel.html 2015-03-30 15:29:30.440215517 -0400
@@ -202,7 +202,7 @@
<p>Level is a 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 <i>debug = debug</i> or <i>debug = 7</i> for greatest debugging output. The default is notice (5).</p>
-<p>The syslog facility &#39;daemon&#39; will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
+<p>The syslog facility &#39;authpriv&#39; will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
2009-04-16 17:54:31 +00:00
<p>Case is ignored for both facilities and levels.</p>
2015-03-30 19:41:21 +00:00
diff -urNp stunnel-5.12/doc/stunnel.pod stunnel-5.12-patched/doc/stunnel.pod
--- stunnel-5.12/doc/stunnel.pod 2015-03-30 15:38:22.517507692 -0400
+++ stunnel-5.12-patched/doc/stunnel.pod 2015-03-30 15:29:30.440215517 -0400
@@ -188,7 +188,7 @@ info (6), or debug (7). All logs for th
all levels numerically less than it will be shown. Use I<debug = debug> or
I<debug = 7> for greatest debugging output. The default is notice (5).
-The syslog facility 'daemon' will be used unless a facility name is supplied.
+The syslog facility 'authpriv' will be used unless a facility name is supplied.
(Facilities are not supported on Win32.)
Case is ignored for both facilities and levels.
2015-03-30 19:41:21 +00:00
diff -urNp stunnel-5.12/src/options.c stunnel-5.12-patched/src/options.c
--- stunnel-5.12/src/options.c 2015-03-19 05:51:04.000000000 -0400
+++ stunnel-5.12-patched/src/options.c 2015-03-30 15:35:45.269490096 -0400
@@ -468,8 +468,12 @@ NOEXPORT char *parse_global_option(CMD c
case CMD_BEGIN:
2015-03-30 19:41:21 +00:00
new_service_options.log_level=LOG_NOTICE;
#if !defined (USE_WIN32) && !defined (__vms)
+#if defined(LOG_AUTHPRIV)
2015-03-30 19:41:21 +00:00
+ new_global_options.log_facility=LOG_AUTHPRIV;
+#else
2015-03-30 19:41:21 +00:00
new_global_options.log_facility=LOG_DAEMON;
#endif
+#endif
break;
case CMD_EXEC:
if(strcasecmp(opt, "debug"))