m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefano Lattarini
Subject: [PATCH] bootstrap: don't exit with status 0 on errors
Date: Sat, 21 Jul 2012 20:02:16 +0200

* 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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]