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