diff -urNp stunnel-5.06/doc/stunnel.8 stunnel-5.06-patched/doc/stunnel.8 --- stunnel-5.06/doc/stunnel.8 2014-10-15 07:40:09.000000000 -0400 +++ stunnel-5.06-patched/doc/stunnel.8 2014-10-17 12:52:12.451980439 -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. diff -urNp stunnel-5.06/doc/stunnel.html stunnel-5.06-patched/doc/stunnel.html --- stunnel-5.06/doc/stunnel.html 2014-10-15 07:40:09.000000000 -0400 +++ stunnel-5.06-patched/doc/stunnel.html 2014-10-17 12:54:46.116011603 -0400 @@ -202,7 +202,7 @@

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 debug = debug or debug = 7 for greatest debugging output. The default is notice (5).

-

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

+

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-5.06/doc/stunnel.pod stunnel-5.06-patched/doc/stunnel.pod --- stunnel-5.06/doc/stunnel.pod 2014-10-15 07:40:09.000000000 -0400 +++ stunnel-5.06-patched/doc/stunnel.pod 2014-10-17 12:52:12.453979963 -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 or I 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-5.06/src/options.c stunnel-5.06-patched/src/options.c --- stunnel-5.06/src/options.c 2014-10-15 16:55:07.000000000 -0400 +++ stunnel-5.06-patched/src/options.c 2014-10-17 12:52:12.455979492 -0400 @@ -451,8 +451,12 @@ NOEXPORT char *parse_global_option(CMD c case CMD_BEGIN: 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"))