readline80-001 927 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. READLINE PATCH REPORT
  2. =====================
  3. Readline-Release: 8.0
  4. Patch-ID: readline80-001
  5. Bug-Reported-by: chet.ramey@case.edu
  6. Bug-Reference-ID:
  7. Bug-Reference-URL:
  8. Bug-Description:
  9. The history file reading code doesn't close the file descriptor open to
  10. the history file when it encounters a zero-length file.
  11. Patch (apply with `patch -p0'):
  12. *** ../readline-8.0-patched/histfile.c 2018-06-11 09:14:52.000000000 -0400
  13. --- histfile.c 2019-05-16 15:55:57.000000000 -0400
  14. ***************
  15. *** 306,309 ****
  16. --- 312,316 ----
  17. {
  18. free (input);
  19. + close (file);
  20. return 0; /* don't waste time if we don't have to */
  21. }
  22. *** ../readline-8.0/patchlevel 2013-11-15 08:11:11.000000000 -0500
  23. --- patchlevel 2014-03-21 08:28:40.000000000 -0400
  24. ***************
  25. *** 1,3 ****
  26. # Do not edit -- exists only for use by patch
  27. ! 0
  28. --- 1,3 ----
  29. # Do not edit -- exists only for use by patch
  30. ! 1