From: Jim Meyering Date: Sat, 4 Mar 2000 08:51:51 +0000 (+0000) Subject: (generate_makefile): Detect write/close failure. X-Git-Tag: Release-1-4b~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc6f7f1bfe41a5a8f5b322f8d0c9afbf4a1e2b71;p=thirdparty%2Fautomake.git (generate_makefile): Detect write/close failure. --- diff --git a/automake.in b/automake.in index 5f666c18c..da265cfad 100755 --- a/automake.in +++ b/automake.in @@ -687,7 +687,12 @@ sub generate_makefile print GM_FILE $output_rules; print GM_FILE $output_trailer; - close (GM_FILE); + if (! close (GM_FILE)) + { + warn "automake: $am_file.in: cannot close: $!\n"; + $exit_status = 1; + return; + } } ################################################################