[PATCH] bootstrap: don't exit with status 0 on errors

Stefano Lattarini <[email protected]> Sat, 21 Jul 2012 20:02:16 +0200
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <c5ff8ecf1a913f09080650a29b015dfa0fc63c92.1342893723.git.stefano.lattarini@gmail.com>
* bootstrap (EXIT_FAILURE): Actually initialize to '1'.  Otherwise,
the function 'func_fatal_error' will actually and unconditionally
exit with status 0 (yikes).
(EXIT_SUCCESS): Initialize to 0.  This missing initialization wasn't
causing any actual bug for now, but could easily start doing so in
the future.

Copyright-paperwork-exempt: yes
Signed-off-by: Stefano Lattarini <[email protected]>
---
 bootstrap | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bootstrap b/bootstrap
index b5d740c..db37209 100755
--- a/bootstrap
+++ b/bootstrap
@@ -49,6 +49,9 @@
 : ${RM='rm -f'}
 : ${SED=sed}
 
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+
 # Ensure file names are sorted consistently across platforms.
 LC_ALL=C
 export LC_ALL
-- 
1.7.10.2.1067.g553d16e