bash-4.2-018.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-018
  5. Bug-Reported-by: Thomas Cort <tcort@minix3.org>
  6. Bug-Reference-ID: <BANLkTik-ebGGw3k_1YtB=RyfV1bsqdxC_g@mail.gmail.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00110.html
  8. Bug-Description:
  9. Bash fails to compile unless JOB_CONTROL is defined.
  10. Patch (apply with `patch -p0'):
  11. *** ../bash-4.2-patched/execute_cmd.c 2011-02-09 17:32:25.000000000 -0500
  12. --- ./execute_cmd.c 2011-11-06 15:12:48.000000000 -0500
  13. ***************
  14. *** 2197,2200 ****
  15. --- 2315,2319 ----
  16. cmd->flags |= CMD_IGNORE_RETURN;
  17. + #if defined (JOB_CONTROL)
  18. lastpipe_flag = 0;
  19. begin_unwind_frame ("lastpipe-exec");
  20. ***************
  21. *** 2216,2228 ****
  22. add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
  23. }
  24. ! cmd->flags |= CMD_LASTPIPE;
  25. }
  26. if (prev >= 0)
  27. add_unwind_protect (close, prev);
  28. exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
  29. if (lstdin > 0)
  30. restore_stdin (lstdin);
  31. if (prev >= 0)
  32. --- 2335,2351 ----
  33. add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
  34. }
  35. ! if (cmd)
  36. ! cmd->flags |= CMD_LASTPIPE;
  37. }
  38. if (prev >= 0)
  39. add_unwind_protect (close, prev);
  40. + #endif
  41. exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
  42. + #if defined (JOB_CONTROL)
  43. if (lstdin > 0)
  44. restore_stdin (lstdin);
  45. + #endif
  46. if (prev >= 0)
  47. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  48. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  49. ***************
  50. *** 26,30 ****
  51. looks for to find the patch level (for the sccs version string). */
  52. ! #define PATCHLEVEL 17
  53. #endif /* _PATCHLEVEL_H_ */
  54. --- 26,30 ----
  55. looks for to find the patch level (for the sccs version string). */
  56. ! #define PATCHLEVEL 18
  57. #endif /* _PATCHLEVEL_H_ */