diff options
| author | hubertf <hubertf@NetBSD.org> | 1999-07-14 17:21:03 +0000 |
|---|---|---|
| committer | hubertf <hubertf@NetBSD.org> | 1999-07-14 17:21:03 +0000 |
| commit | 76139748e20dc1e0c423c40683837e6355618969 (patch) | |
| tree | f04f20f227325fb4a74e65885b38bc5bc3dbed48 /games/adventure | |
| parent | 7bcdffa9838d931eaace5b55aeb7b253fa1d5fc5 (diff) | |
From PR 7985 by Joseph Myers <jsm28@cam.ac.uk>:
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.
Diffstat (limited to 'games/adventure')
| -rw-r--r-- | games/adventure/setup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/games/adventure/setup.c b/games/adventure/setup.c index 89c3100ac48..8851b074ad2 100644 --- a/games/adventure/setup.c +++ b/games/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); } |
