summaryrefslogtreecommitdiffstats
path: root/debian/patches/lower-dns-lookup-mismatch-messages.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:02 +0000
commit0a354ad0b2c9eaaa204c31db478da109dc6d2a8b (patch)
tree2467caa8ad20a7fca31bef64224e41a4238db0c9 /debian/patches/lower-dns-lookup-mismatch-messages.patch
parentAdding upstream version 2:4.20.0+dfsg. (diff)
downloadsamba-0a354ad0b2c9eaaa204c31db478da109dc6d2a8b.tar.xz
samba-0a354ad0b2c9eaaa204c31db478da109dc6d2a8b.zip
Adding debian version 2:4.20.0+dfsg-1~exp1.debian/2%4.20.0+dfsg-1_exp1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/lower-dns-lookup-mismatch-messages.patch')
-rw-r--r--debian/patches/lower-dns-lookup-mismatch-messages.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/lower-dns-lookup-mismatch-messages.patch b/debian/patches/lower-dns-lookup-mismatch-messages.patch
new file mode 100644
index 0000000..ae6c197
--- /dev/null
+++ b/debian/patches/lower-dns-lookup-mismatch-messages.patch
@@ -0,0 +1,34 @@
+From: Michael Tokarev <mjt@tls.msk.ru>
+Date: Fri, 01 Mar 2024 16:16:20 +0300
+Subject: lower dns lookup mismatch messages
+
+There's just too much useless noise in the logs,
+especially when the PTR record just doesn't exist.
+
+Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
+
+diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
+index 5ff875c230d..b9237c3797e 100644
+--- a/source3/lib/util_sock.c
++++ b/source3/lib/util_sock.c
+@@ -710,5 +710,5 @@ static bool matchname(const char *remotehost,
+ (!strequal(remotehost, ailist->ai_canonname) &&
+ !strequal(remotehost, "localhost"))) {
+- DEBUG(0,("matchname: host name/name mismatch: %s != %s\n",
++ DEBUG(5,("matchname: host name/name mismatch: %s != %s\n",
+ remotehost,
+ ailist->ai_canonname ?
+@@ -736,5 +736,5 @@ static bool matchname(const char *remotehost,
+ */
+
+- DEBUG(0,("matchname: host name/address mismatch: %s != %s\n",
++ DEBUG(5,("matchname: host name/address mismatch: %s != %s\n",
+ print_sockaddr_len(addr_buf,
+ sizeof(addr_buf),
+@@ -892,5 +892,5 @@ int get_remote_hostname(const struct tsocket_address *remote_address,
+ } else {
+ if (!matchname(name_buf, (struct sockaddr *)&ss, len)) {
+- DEBUG(0,("matchname failed on %s\n", name_buf));
++ DEBUG(5,("matchname failed on %s\n", name_buf));
+ strlcpy(name_buf, "UNKNOWN", sizeof(name_buf));
+ }