0009-bash50-009.patch 1.2 KB

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