0045-patchlevel-45.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-045
  2. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 4.3
  6. Patch-ID: bash43-045
  7. Bug-Reported-by: Basin Ilya <basinilya@gmail.com>
  8. Bug-Reference-ID: <5624C0AC.8070802@gmail.com>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-10/msg00141.html
  10. Bug-Description:
  11. If a file open attempted as part of a redirection fails because it is interrupted
  12. by a signal, the shell needs to process any pending traps to allow the redirection
  13. to be canceled.
  14. Patch (apply with `patch -p0'):
  15. *** a/redir.c 2014-12-03 10:47:38.000000000 -0500
  16. --- b/redir.c 2015-01-16 10:15:47.000000000 -0500
  17. ***************
  18. *** 672,676 ****
  19. e = errno;
  20. if (fd < 0 && e == EINTR)
  21. ! QUIT;
  22. errno = e;
  23. }
  24. --- 672,679 ----
  25. e = errno;
  26. if (fd < 0 && e == EINTR)
  27. ! {
  28. ! QUIT;
  29. ! run_pending_traps ();
  30. ! }
  31. errno = e;
  32. }
  33. *** a/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
  34. --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
  35. ***************
  36. *** 26,30 ****
  37. looks for to find the patch level (for the sccs version string). */
  38. ! #define PATCHLEVEL 44
  39. #endif /* _PATCHLEVEL_H_ */
  40. --- 26,30 ----
  41. looks for to find the patch level (for the sccs version string). */
  42. ! #define PATCHLEVEL 45
  43. #endif /* _PATCHLEVEL_H_ */