summaryrefslogtreecommitdiffstats
path: root/recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch')
-rw-r--r--recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch b/recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch
deleted file mode 100644
index c02d2b2..0000000
--- a/recipes-security/clamav/clamav-0.98.5/0005-Workaround-a-bug-in-libc-on-Hurd.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From b8e7d19ec50c30c59fa1038cd9da6d37c2176833 Mon Sep 17 00:00:00 2001
2From: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
3Date: Sat, 21 Jun 2014 17:02:06 +0200
4Subject: Workaround a bug in libc on Hurd
5
6The send() function, when asked to send 0 characters, doesn't trigger a corresponding recv(), except on Hurd.
7
8This breaks the communication between clamd and clamdscan.
9
10See: https://bugs.debian.org/752237
11---
12 clamd/scanner.c | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/clamd/scanner.c b/clamd/scanner.c
16index cd3d07c4ad3e..d531c4420686 100644
17--- a/clamd/scanner.c
18+++ b/clamd/scanner.c
19@@ -119,6 +119,7 @@ int scan_callback(STATBUF *sb, char *filename, const char *msg, enum cli_ftw_rea
20
21 /* detect disconnected socket,
22 * this should NOT detect half-shutdown sockets (SHUT_WR) */
23+#if !defined(__GNU__)
24 if (send(scandata->conn->sd, &ret, 0, 0) == -1 && errno != EINTR) {
25 logg("$Client disconnected while command was active!\n");
26 thrmgr_group_terminate(scandata->conn->group);
27@@ -126,7 +127,7 @@ int scan_callback(STATBUF *sb, char *filename, const char *msg, enum cli_ftw_rea
28 free(filename);
29 return CL_BREAK;
30 }
31-
32+#endif
33 if (thrmgr_group_need_terminate(scandata->conn->group)) {
34 logg("^Client disconnected while scanjob was active\n");
35 if (reason == visit_file)