]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/bash/bash52-002
bash: Update the patches applied to bash
[ipfire-2.x.git] / src / patches / bash / bash52-002
CommitLineData
5be71d2a
AB
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 5.2
5Patch-ID: bash52-002
6
7Bug-Reported-by: Kan-Ru Chen <koster@debian.org>
8Bug-Reference-ID:
9Bug-Reference-URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021109
10
11Bug-Description:
12
13Starting bash with an invalid locale specification for LC_ALL/LANG/LC_CTYPE
14can cause the shell to crash.
15
16Patch (apply with `patch -p0'):
17
18*** ../bash-5.2-patched/lib/readline/nls.c 2022-08-15 09:38:51.000000000 -0400
19--- lib/readline/nls.c 2022-10-05 09:23:22.000000000 -0400
20***************
21*** 142,145 ****
22--- 142,149 ----
23 lspec = "";
24 ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */
25+ if (ret == 0 || *ret == 0)
26+ ret = setlocale (LC_CTYPE, (char *)NULL);
27+ if (ret == 0 || *ret == 0)
28+ ret = RL_DEFAULT_LOCALE;
29 #else
30 ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec;
31
32*** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
33--- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
34***************
35*** 26,30 ****
36 looks for to find the patch level (for the sccs version string). */
37
38! #define PATCHLEVEL 1
39
40 #endif /* _PATCHLEVEL_H_ */
41--- 26,30 ----
42 looks for to find the patch level (for the sccs version string). */
43
44! #define PATCHLEVEL 2
45
46 #endif /* _PATCHLEVEL_H_ */