bash44-010.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From https://ftp.gnu.org/gnu/bash/bash-4.4-patches/bash44-010
  2. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.4
  6. Patch-ID: bash44-010
  7. Bug-Reported-by: Clark Wang <dearvoid@gmail.com>
  8. Bug-Reference-ID: <CADv8-og092RvvUUHy46=BPKChCXw5g=GOOqgN0V3f4a3TpLebQ@mail.gmail.com>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00104.html
  10. Bug-Description:
  11. Depending on compiler optimizations and behavior, the `read' builtin may not
  12. save partial input when a timeout occurs.
  13. Patch (apply with `patch -p0'):
  14. *** bash-4.4-patched/builtins/read.def 2016-05-16 14:24:56.000000000 -0400
  15. --- b/builtins/read.def 2016-11-25 12:37:56.000000000 -0500
  16. ***************
  17. *** 182,186 ****
  18. {
  19. register char *varname;
  20. ! int size, i, nr, pass_next, saw_escape, eof, opt, retval, code, print_ps2;
  21. int input_is_tty, input_is_pipe, unbuffered_read, skip_ctlesc, skip_ctlnul;
  22. int raw, edit, nchars, silent, have_timeout, ignore_delim, fd, lastsig, t_errno;
  23. --- b/182,187 ----
  24. {
  25. register char *varname;
  26. ! int size, nr, pass_next, saw_escape, eof, opt, retval, code, print_ps2;
  27. ! volatile int i;
  28. int input_is_tty, input_is_pipe, unbuffered_read, skip_ctlesc, skip_ctlnul;
  29. int raw, edit, nchars, silent, have_timeout, ignore_delim, fd, lastsig, t_errno;
  30. *** bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  31. --- b/patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  32. ***************
  33. *** 26,30 ****
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 9
  36. #endif /* _PATCHLEVEL_H_ */
  37. --- b/26,30 ----
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 10
  40. #endif /* _PATCHLEVEL_H_ */