bash44-005.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From https://ftp.gnu.org/gnu/bash/bash-4.4-patches/bash44-005
  2. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.4
  6. Patch-ID: bash44-005
  7. Bug-Reported-by: Dr. Werner Fink <werner@suse.de>
  8. Bug-Reference-ID: <20161107100936.ajnojd7dspirdflf@noether.suse.de>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00054.html
  10. Bug-Description:
  11. Under certain circumstances, a simple command is optimized to eliminate a
  12. fork, resulting in an EXIT trap not being executed.
  13. Patch (apply with `patch -p0'):
  14. *** a/bash-4.4/builtins/evalstring.c 2016-08-11 14:18:51.000000000 -0400
  15. --- b/builtins/evalstring.c 2016-11-08 15:05:07.000000000 -0500
  16. ***************
  17. *** 105,114 ****
  18. *bash_input.location.string == '\0' &&
  19. command->type == cm_simple &&
  20. - #if 0
  21. signal_is_trapped (EXIT_TRAP) == 0 &&
  22. signal_is_trapped (ERROR_TRAP) == 0 &&
  23. - #else
  24. any_signals_trapped () < 0 &&
  25. - #endif
  26. command->redirects == 0 && command->value.Simple->redirects == 0 &&
  27. ((command->flags & CMD_TIME_PIPELINE) == 0) &&
  28. --- 105,111 ----
  29. *** a/bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  30. --- b/patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  31. ***************
  32. *** 26,30 ****
  33. looks for to find the patch level (for the sccs version string). */
  34. ! #define PATCHLEVEL 4
  35. #endif /* _PATCHLEVEL_H_ */
  36. --- 26,30 ----
  37. looks for to find the patch level (for the sccs version string). */
  38. ! #define PATCHLEVEL 5
  39. #endif /* _PATCHLEVEL_H_ */