File modprobe-different-exit-codes.patch of Package module-init-tools

Allow to set a different exit code for fatal(). mit-unsupported-modules.patch
needs this.
---
 modprobe.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- modprobe.c.orig
+++ modprobe.c
@@ -90,13 +90,15 @@ static void warn(const char *fmt, ...)
 	va_end(arglist);
 }
 
+/* can be overriden for different kinds of errors */
+static int fatal_exit_code = 1;
 static void fatal(const char *fmt, ...)
 {
 	va_list arglist;
 	va_start(arglist, fmt);
 	message("FATAL: ", fmt, &arglist);
 	va_end(arglist);
-	exit(1);
+	exit(fatal_exit_code);
 }
 
 
openSUSE Build Service is sponsored by