bash-4.2-026.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-026
  5. Bug-Reported-by: Greg Wooledge <wooledg@eeg.ccf.org>
  6. Bug-Reference-ID: <20120425180443.GO22241@eeg.ccf.org>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00172.html
  8. Bug-Description:
  9. The `lastpipe' option does not behave correctly on machines where the
  10. open file limit is less than 256.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.2-patched/execute_cmd.c 2011-11-21 12:04:47.000000000 -0500
  13. --- ./execute_cmd.c 2012-04-26 11:09:30.000000000 -0400
  14. ***************
  15. *** 2206,2210 ****
  16. if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
  17. {
  18. ! lstdin = move_to_high_fd (0, 0, 255);
  19. if (lstdin > 0)
  20. {
  21. --- 2325,2329 ----
  22. if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
  23. {
  24. ! lstdin = move_to_high_fd (0, 1, -1);
  25. if (lstdin > 0)
  26. {
  27. ***************
  28. *** 2252,2256 ****
  29. --- 2371,2377 ----
  30. }
  31. + #if defined (JOB_CONTROL)
  32. discard_unwind_frame ("lastpipe-exec");
  33. + #endif
  34. return (exec_result);
  35. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  36. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  37. ***************
  38. *** 26,30 ****
  39. looks for to find the patch level (for the sccs version string). */
  40. ! #define PATCHLEVEL 25
  41. #endif /* _PATCHLEVEL_H_ */
  42. --- 26,30 ----
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 26
  45. #endif /* _PATCHLEVEL_H_ */