]>
Commit | Line | Data |
---|---|---|
1 | BASH PATCH REPORT | |
2 | ================= | |
3 | ||
4 | Bash-Release: 5.0 | |
5 | Patch-ID: bash50-009 | |
6 | ||
7 | Bug-Reported-by: chet.ramey@case.edu | |
8 | Bug-Reference-ID: | |
9 | Bug-Reference-URL: | |
10 | ||
11 | Bug-Description: | |
12 | ||
13 | The history file reading code doesn't close the file descriptor open to | |
14 | the history file when it encounters a zero-length file. | |
15 | ||
16 | Patch (apply with `patch -p0'): | |
17 | ||
18 | *** ../bash-5.0-patched/lib/readline/histfile.c 2018-06-11 09:14:52.000000000 -0400 | |
19 | --- lib/readline/histfile.c 2019-05-16 15:55:57.000000000 -0400 | |
20 | *************** | |
21 | *** 306,309 **** | |
22 | --- 312,316 ---- | |
23 | { | |
24 | free (input); | |
25 | + close (file); | |
26 | return 0; /* don't waste time if we don't have to */ | |
27 | } | |
28 | *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 | |
29 | --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 | |
30 | *************** | |
31 | *** 26,30 **** | |
32 | looks for to find the patch level (for the sccs version string). */ | |
33 | ||
34 | ! #define PATCHLEVEL 8 | |
35 | ||
36 | #endif /* _PATCHLEVEL_H_ */ | |
37 | --- 26,30 ---- | |
38 | looks for to find the patch level (for the sccs version string). */ | |
39 | ||
40 | ! #define PATCHLEVEL 9 | |
41 | ||
42 | #endif /* _PATCHLEVEL_H_ */ |