Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release-src > by-pkgid > 7851f2b34d4cc8d5b406077c679787f2 > files > 1

stunnel-4.26-2mdv2009.1.src.rpm

Change the default log facility to AUTHPRIV instead of DAEMON.

diff -Naur stunnel-4.06/src/options.c stunnel-4.06.oden/src/options.c
--- stunnel-4.06/src/options.c	2004-12-25 23:46:32.000000000 +0100
+++ stunnel-4.06.oden/src/options.c	2004-12-27 10:19:23.145760299 +0100
@@ -267,8 +267,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"))
diff -Naur stunnel-4.06/doc/stunnel.8 stunnel-4.06.oden/doc/stunnel.8
--- stunnel-4.06/doc/stunnel.8	2004-12-25 23:42:59.000000000 +0100
+++ stunnel-4.06.oden/doc/stunnel.8	2004-12-27 10:19:23.146760636 +0100
@@ -265,7 +265,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.
diff -Naur stunnel-4.06/doc/stunnel.html stunnel-4.06.oden/doc/stunnel.html
--- stunnel-4.06/doc/stunnel.html	2004-12-25 23:43:00.000000000 +0100
+++ stunnel-4.06.oden/doc/stunnel.html	2004-12-27 10:20:10.620748463 +0100
@@ -263,7 +263,7 @@
 <strong>debug = 7</strong> for greatest debugging output.  The default is notice (5).</p>
 </dd>
 <dd>
-<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>
 </dd>
 <dd>
diff -Naur stunnel-4.06/doc/stunnel.pod stunnel-4.06.oden/doc/stunnel.pod
--- stunnel-4.06/doc/stunnel.pod	2004-12-25 23:42:53.000000000 +0100
+++ stunnel-4.06.oden/doc/stunnel.pod	2004-12-27 10:19:23.145760299 +0100
@@ -181,7 +181,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.