Blame SOURCES/nss-pam-ldapd-0.8.12-In-nslcd-log-EPIPE-only-on-debug-level.patch

df3ee2
From ec2ac2cc7eaa945f3d07d2528ddd4b8d9b8d38e1 Mon Sep 17 00:00:00 2001
df3ee2
From: Arthur de Jong <arthur@arthurdejong.org>
df3ee2
Date: Sun, 6 Oct 2013 14:14:39 +0000
df3ee2
Subject: [PATCH 3/3] in nslcd, log EPIPE only on debug level (4897033 from
df3ee2
 0.9)
df3ee2
df3ee2
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@2032 ef36b2f9-881f-0410-afb5-c4e39611909c
df3ee2
---
df3ee2
 nslcd/common.h | 5 ++++-
df3ee2
 1 file changed, 4 insertions(+), 1 deletion(-)
df3ee2
df3ee2
diff --git a/nslcd/common.h b/nslcd/common.h
df3ee2
index 736d7c09c9cd6d333fc4caa0a15144cc83eb9ecd..c48decb58df5262f459e0862f677960c31e20df7 100644
df3ee2
--- a/nslcd/common.h
df3ee2
+++ b/nslcd/common.h
df3ee2
@@ -43,7 +43,10 @@
df3ee2
    stream */
df3ee2
 
df3ee2
 #define ERROR_OUT_WRITEERROR(fp) \
df3ee2
-  log_log(LOG_WARNING,"error writing to client: %s",strerror(errno)); \
df3ee2
+  if (errno==EPIPE) \
df3ee2
+   log_log(LOG_DEBUG, "error writing to client: %s", strerror(errno)); \
df3ee2
+  else \
df3ee2
+   log_log(LOG_WARNING, "error writing to client: %s", strerror(errno)); \
df3ee2
   return -1;
df3ee2
 
df3ee2
 #define ERROR_OUT_READERROR(fp) \
df3ee2
-- 
df3ee2
1.8.3.1
df3ee2