stunnel/stunnel-4.31-authpriv.patch

53 lines
2.8 KiB
Diff
Raw Normal View History

diff -urNp stunnel-4.31/doc/stunnel.8 stunnel-4.31-modified/doc/stunnel.8
--- stunnel-4.31/doc/stunnel.8 2010-02-03 07:46:46.000000000 -0500
+++ stunnel-4.31-modified/doc/stunnel.8 2010-02-16 15:16:37.000000000 -0500
@@ -169,7 +169,7 @@ info (6), or debug (7). All logs for th
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.
diff -urNp stunnel-4.31/doc/stunnel.html stunnel-4.31-modified/doc/stunnel.html
--- stunnel-4.31/doc/stunnel.html 2010-02-03 07:46:46.000000000 -0500
+++ stunnel-4.31-modified/doc/stunnel.html 2010-02-16 15:16:37.000000000 -0500
@@ -193,7 +193,7 @@ emerg (0), alert (1), crit (2), err (3),
2009-04-16 17:54:31 +00:00
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 -urNp stunnel-4.31/doc/stunnel.pod stunnel-4.31-modified/doc/stunnel.pod
--- stunnel-4.31/doc/stunnel.pod 2010-02-03 07:46:41.000000000 -0500
+++ stunnel-4.31-modified/doc/stunnel.pod 2010-02-16 15:16:37.000000000 -0500
@@ -136,7 +136,7 @@ info (6), or debug (7). All logs for th
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.
diff -urNp stunnel-4.31/src/options.c stunnel-4.31-modified/src/options.c
--- stunnel-4.31/src/options.c 2010-01-29 05:43:23.000000000 -0500
+++ stunnel-4.31-modified/src/options.c 2010-02-16 15:16:37.000000000 -0500
@@ -139,8 +139,12 @@ static char *parse_global_option(CMD cmd
case CMD_INIT:
new_global_options.debug_level=LOG_NOTICE;
#if !defined (USE_WIN32) && !defined (__vms)
+#if defined(LOG_AUTHPRIV)
+ new_global_options.facility=LOG_AUTHPRIV;
+#else
new_global_options.facility=LOG_DAEMON;
#endif
+#endif
break;
case CMD_EXEC:
if(strcasecmp(opt, "debug"))