From d1b7ca1371db78422c0683528ce97f1302056524 Mon Sep 17 00:00:00 2001 From: hubertf Date: Wed, 14 Jul 1999 17:21:03 +0000 Subject: From PR 7985 by Joseph Myers : games/adventure/setup.c fails to check for errors when writing its output. This means that, if the disk fills up at this point during a build, it would nevertheless fail to return an error status. --- adventure/setup.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'adventure') diff --git a/adventure/setup.c b/adventure/setup.c index 89c3100a..8851b074 100644 --- a/adventure/setup.c +++ b/adventure/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.6 1999/02/10 00:29:21 hubertf Exp $ */ +/* $NetBSD: setup.c,v 1.7 1999/07/14 17:21:03 hubertf Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: setup.c,v 1.6 1999/02/10 00:29:21 hubertf Exp $"); +__RCSID("$NetBSD: setup.c,v 1.7 1999/07/14 17:21:03 hubertf Exp $"); #endif #endif /* not lint */ @@ -121,5 +121,8 @@ main(argc, argv) } puts("\n\t0\n};"); fclose(infile); + fflush(stdout); + if (ferror(stdout)) + err(1, "writing standard output"); exit(0); } -- cgit v1.2.3-56-ge451