diff options
-rw-r--r-- | coreutils/yes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/yes.c b/coreutils/yes.c index 5d799f09b..c3d3e8288 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -33,6 +33,10 @@ int yes_main(int argc UNUSED_PARAM, char **argv) | |||
33 | ++argv; | 33 | ++argv; |
34 | 34 | ||
35 | do { | 35 | do { |
36 | #if ENABLE_PLATFORM_MINGW32 | ||
37 | if (ferror(stdout) != 0) | ||
38 | break; | ||
39 | #endif | ||
36 | pp = argv; | 40 | pp = argv; |
37 | while (1) { | 41 | while (1) { |
38 | fputs(*pp, stdout); | 42 | fputs(*pp, stdout); |