stunnel/SOURCES/stunnel-5.50-authpriv.patch

74 lines
2.6 KiB
Diff
Raw Permalink Normal View History

2024-03-28 11:53:13 +00:00
From cfbf803dd3338a915f41bdfded69b34e7f21403d Mon Sep 17 00:00:00 2001
From: Tomas Mraz <tmraz@fedoraproject.org>
Date: Mon, 12 Sep 2022 11:07:38 +0200
Subject: [PATCH 1/7] Apply patch stunnel-5.50-authpriv.patch
Patch-name: stunnel-5.50-authpriv.patch
Patch-id: 0
From-dist-git-commit: 70b3076eb09912b3a11f371b8c523303114fffa3
---
doc/stunnel.8.in | 2 +-
doc/stunnel.html.in | 2 +-
doc/stunnel.pod.in | 2 +-
src/options.c | 4 ++++
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/doc/stunnel.8.in b/doc/stunnel.8.in
index 8cd8bc0..b5d7d75 100644
--- a/doc/stunnel.8.in
+++ b/doc/stunnel.8.in
@@ -209,7 +209,7 @@ requested to do so by an stunnel developer, or when you intend to get confused.
2021-11-04 02:51:27 +00:00
.Sp
2024-03-28 11:53:13 +00:00
The default logging level is notice (5).
.Sp
-The syslog 'daemon' facility will be used unless a facility name is supplied.
+The syslog 'authpriv' facility will be used unless a facility name is supplied.
2021-11-04 02:51:27 +00:00
(Facilities are not supported on Win32.)
.Sp
Case is ignored for both facilities and levels.
2024-03-28 11:53:13 +00:00
diff --git a/doc/stunnel.html.in b/doc/stunnel.html.in
index a7931aa..cda5993 100644
--- a/doc/stunnel.html.in
+++ b/doc/stunnel.html.in
@@ -248,7 +248,7 @@
2021-11-04 02:51:27 +00:00
2024-03-28 11:53:13 +00:00
<p>The default logging level is notice (5).</p>
2021-11-04 02:51:27 +00:00
2024-03-28 11:53:13 +00:00
-<p>The syslog &#39;daemon&#39; facility will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
+<p>The syslog &#39;authpriv&#39; facility will be used unless a facility name is supplied. (Facilities are not supported on Win32.)</p>
2021-11-04 02:51:27 +00:00
<p>Case is ignored for both facilities and levels.</p>
2024-03-28 11:53:13 +00:00
diff --git a/doc/stunnel.pod.in b/doc/stunnel.pod.in
index a54b25d..f830cf3 100644
--- a/doc/stunnel.pod.in
+++ b/doc/stunnel.pod.in
@@ -197,7 +197,7 @@ requested to do so by an stunnel developer, or when you intend to get confused.
The default logging level is notice (5).
2021-11-04 02:51:27 +00:00
2024-03-28 11:53:13 +00:00
-The syslog 'daemon' facility will be used unless a facility name is supplied.
+The syslog 'authpriv' facility will be used unless a facility name is supplied.
2021-11-04 02:51:27 +00:00
(Facilities are not supported on Win32.)
Case is ignored for both facilities and levels.
2024-03-28 11:53:13 +00:00
diff --git a/src/options.c b/src/options.c
index 5f8ad8b..6e4a18b 100644
--- a/src/options.c
+++ b/src/options.c
@@ -1960,7 +1960,11 @@ NOEXPORT const char *parse_service_option(CMD cmd, SERVICE_OPTIONS **section_ptr
2021-11-04 02:51:27 +00:00
case CMD_SET_DEFAULTS:
section->log_level=LOG_NOTICE;
#if !defined (USE_WIN32) && !defined (__vms)
+#if defined(LOG_AUTHPRIV)
+ new_global_options.log_facility=LOG_AUTHPRIV;
+#else
new_global_options.log_facility=LOG_DAEMON;
+#endif
2024-03-28 11:53:13 +00:00
#endif
2021-11-04 02:51:27 +00:00
break;
case CMD_SET_COPY:
2024-03-28 11:53:13 +00:00
--
2.39.2