rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

Blame SOURCES/bash-5.1-patch-2.patch

b92f7d
diff --git a/builtins/wait.def b/builtins/wait.def
b92f7d
--- a/builtins/wait.def
b92f7d
+++ b/builtins/wait.def
b92f7d
@@ -213,11 +213,11 @@ wait_builtin (list)
b92f7d
 	}
b92f7d
 
b92f7d
       status = wait_for_any_job (wflags, &pstat);
b92f7d
-      if (status < 0)
b92f7d
-	status = 127;
b92f7d
-
b92f7d
       if (vname && status >= 0)
b92f7d
 	bind_var_to_int (vname, pstat.pid);
b92f7d
+
b92f7d
+      if (status < 0)
b92f7d
+	status = 127;
b92f7d
       if (list)
b92f7d
 	unset_waitlist ();
b92f7d
       WAIT_RETURN (status);
b92f7d
diff --git a/patchlevel.h b/patchlevel.h
b92f7d
--- a/patchlevel.h
b92f7d
+++ b/patchlevel.h
b92f7d
@@ -25,6 +25,6 @@
b92f7d
    regexp `^#define[ 	]*PATCHLEVEL', since that's what support/mkversion.sh
b92f7d
    looks for to find the patch level (for the sccs version string). */
b92f7d
 
b92f7d
-#define PATCHLEVEL 1
b92f7d
+#define PATCHLEVEL 2
b92f7d
 
b92f7d
 #endif /* _PATCHLEVEL_H_ */