From 4352576564a34de1d727be83ce8fcc9e5c7a87ff Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 7 Oct 2022 16:49:48 +0000 Subject: bugfix: adapt to new allread() API Signed-off-by: Laurent Bercot --- src/libs6dns/s6dns_engine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libs6dns') diff --git a/src/libs6dns/s6dns_engine.c b/src/libs6dns/s6dns_engine.c index 10f588c..8c99194 100644 --- a/src/libs6dns/s6dns_engine.c +++ b/src/libs6dns/s6dns_engine.c @@ -84,7 +84,9 @@ static int s6dns_mininetstring_read (int fd, stralloc *sa, uint32_t *w) *w &= ~(1U << 30) ; } { - size_t r = allread(fd, sa->s + sa->len, *w) ; + size_t r ; + errno = EPIPE ; + r = allread(fd, sa->s + sa->len, *w) ; sa->len += r ; *w -= r ; } return *w ? -1 : 1 ; -- cgit v1.2.3