Blame SOURCES/varnish-6.0.0.fix_el6_fortify_source.patch

baf70d
--- bin/varnishtest/vtc_process.c.orig	2018-04-26 14:12:29.539178105 +0100
baf70d
+++ bin/varnishtest/vtc_process.c	2018-04-26 15:27:49.851948252 +0100
baf70d
@@ -216,7 +216,7 @@
baf70d
 		vtc_dump(p->vl, 4, "stdout", buf, i);
baf70d
 	else if (p->log == 3)
baf70d
 		vtc_hexdump(p->vl, 4, "stdout", buf, i);
baf70d
-	(void)write(p->f_stdout, buf, i);
baf70d
+	assert(write(p->f_stdout, buf, i) == i);
baf70d
 	Term_Feed(p->term, buf, buf + i);
baf70d
 	return (0);
baf70d
 }
baf70d
@@ -239,7 +239,7 @@
baf70d
 	p->stderr_bytes += i;
baf70d
 	AZ(pthread_mutex_unlock(&p->mtx));
baf70d
 	vtc_dump(p->vl, 4, "stderr", buf, i);
baf70d
-	(void)write(p->f_stderr, buf, i);
baf70d
+	assert(write(p->f_stdout, buf, i) == i);
baf70d
 	return (0);
baf70d
 }
baf70d