stunnel/stunnel-4.27-authpriv.patch

54 lines
2.5 KiB
Diff
Raw Normal View History

Change the default log facility from LOG_DAEMON to LOG_AUTHPRIV.
2009-04-16 17:54:31 +00:00
diff -urN stunnel/doc/stunnel.html stunnel-4.27/doc/stunnel.html
--- stunnel/doc/stunnel.html 2009-04-16 11:17:26.000000000 +0200
+++ stunnel-4.27/doc/stunnel.html 2009-04-16 18:09:06.000000000 +0200
@@ -189,7 +189,7 @@
info (6), or debug (7). All logs for the specified level and
all levels numerically less than it will be shown. Use <strong>debug = debug</strong> or
<strong>debug = 7</strong> for greatest debugging output. The default is notice (5).</p>
-<p>The syslog facility 'daemon' will be used unless a facility name is supplied.
+<p>The syslog facility 'authpriv' will be used unless a facility name is supplied.
(Facilities are not supported on Win32.)</p>
<p>Case is ignored for both facilities and levels.</p>
</dd>
diff -urN stunnel/doc/stunnel.pod stunnel-4.27/doc/stunnel.pod
--- stunnel/doc/stunnel.pod 2009-04-16 10:38:41.000000000 +0200
+++ stunnel-4.27/doc/stunnel.pod 2009-04-16 18:08:49.000000000 +0200
@@ -139,7 +139,7 @@
all levels numerically less than it will be shown. Use B<debug = debug> or
B<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.
2009-04-16 17:54:31 +00:00
diff -urN stunnel/doc/stunnel.8 stunnel-4.27/doc/stunnel.8
--- stunnel/doc/stunnel.8 2009-04-16 11:17:25.000000000 +0200
+++ stunnel-4.27/doc/stunnel.8 2009-04-16 18:08:49.000000000 +0200
@@ -226,7 +226,7 @@
all levels numerically less than it will be shown. Use \fBdebug = debug\fR or
\&\fBdebug = 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.
2009-04-16 17:54:31 +00:00
diff -urN stunnel/src/options.c stunnel-4.27/src/options.c
--- stunnel/src/options.c 2009-04-16 10:49:20.000000000 +0200
+++ stunnel-4.27/src/options.c 2009-04-16 18:08:49.000000000 +0200
@@ -136,8 +136,12 @@
case CMD_INIT:
options.debug_level=5;
#if !defined (USE_WIN32) && !defined (__vms)
+#if defined(LOG_AUTHPRIV)
+ options.facility=LOG_AUTHPRIV;
+#else
options.facility=LOG_DAEMON;
#endif
+#endif
break;
case CMD_EXEC:
if(strcasecmp(opt, "debug"))