Description: Cause test-utils/yes to stop on write error
 Submitter got this tight-looping on EPIPE.
Author: Yann Dirson <dirson@debian.org>
Bug-Debian: https://bugs.debian.org/788863

--- cssc-1.4.0.orig/testutils/yes.c
+++ cssc-1.4.0/testutils/yes.c
@@ -69,12 +69,14 @@ main(int argc, char *argv[])
       concat(msg, argc, argv);
 
       for (;;)
-        puts(msg);              /* this adds a trailing newline */
+        if (puts(msg) == EOF)   /* this adds a trailing newline */
+          break;
     }
   else
     {
       for (;;)
-        puts("yes");            /* this adds a trailing newline */
+        if (puts("yes") == EOF) /* this adds a trailing newline */
+          break;
     }
 
   /*NOTREACHED*/
