]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/bash/bash51-002
bash: Update to 5.1 with patch 4
[ipfire-2.x.git] / src / patches / bash / bash51-002
CommitLineData
f9f6cbd8
AB
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 5.1
5Patch-ID: bash51-002
6
7Bug-Reported-by: oguzismailuysal@gmail.com
8Bug-Reference-ID: <CAH7i3LoHFUa4aSF5-AD2r80HG-p-YzD_9ZxomarZkhP8NMq63g@mail.gmail.com>
9Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00037.html
10
11Bug-Description:
12
13If there are no jobs, and the `-n' and `-p' options are both supplied to
14`wait', bash can assign a value to the variable name specified with `-p'
15instead of leaving it unset.
16
17Patch (apply with `patch -p0'):
18
19*** ../bash-5.1-patched/builtins/wait.def 2020-04-09 15:13:57.000000000 -0400
20--- builtins/wait.def 2020-12-11 09:46:49.000000000 -0500
21***************
22*** 214,222 ****
23
24 status = wait_for_any_job (wflags, &pstat);
25- if (status < 0)
26- status = 127;
27-
28 if (vname && status >= 0)
29 bind_var_to_int (vname, pstat.pid);
30 if (list)
31 unset_waitlist ();
32--- 214,222 ----
33
34 status = wait_for_any_job (wflags, &pstat);
35 if (vname && status >= 0)
36 bind_var_to_int (vname, pstat.pid);
37+
38+ if (status < 0)
39+ status = 127;
40 if (list)
41 unset_waitlist ();
42
43*** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
44--- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
45***************
46*** 26,30 ****
47 looks for to find the patch level (for the sccs version string). */
48
49! #define PATCHLEVEL 1
50
51 #endif /* _PATCHLEVEL_H_ */
52--- 26,30 ----
53 looks for to find the patch level (for the sccs version string). */
54
55! #define PATCHLEVEL 2
56
57 #endif /* _PATCHLEVEL_H_ */