BASH PATCH REPORT
                             =================

Bash-Release:   5.3
Patch-ID:       bash53-001

Bug-Reported-by:        John Sidles <jasid...@gmail.com>
Bug-Reference-ID:       
<cahoxhhrka86ftrpsq-fbvciaxz9kbo5pvfqbovbdxdfysbx...@mail.gmail.com>
Bug-Reference-URL:      
https://lists.gnu.org/archive/html/bug-bash/2025-07/msg00035.html

Bug-Description:

In posix mode, `wait -n' with pid arguments does not restrict the set of
processes it considers to those arguments.

Patch (apply with `patch -p0'):

*** ../bash-5.3/jobs.c  Fri Mar  7 18:48:44 2025
--- jobs.c      Mon Jul 14 10:25:13 2025
***************
*** 3539,3543 ****
       one in bgpids. We can do this in posix mode because we'll remove any
       one we find from the table, preserving existing semantics. */
!   if (posixly_correct && (t = bgp_findone ()))
      {
        pid = t->pid;
--- 3539,3543 ----
       one in bgpids. We can do this in posix mode because we'll remove any
       one we find from the table, preserving existing semantics. */
!   if (posixly_correct && (flags & JWAIT_WAITING) == 0 && (t = bgp_findone ()))
      {
        pid = t->pid;

*** ../bash-5.3/patchlevel.h    2020-06-22 14:51:03.000000000 -0400
--- patchlevel.h        2020-10-01 11:01:28.000000000 -0400
***************
*** 26,30 ****
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 0
  
  #endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 1
  
  #endif /* _PATCHLEVEL_H_ */

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to