Date: Fri, 2 May 2008 09:12:02 GMT From: bf <bf2006a@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/123326: [PATCH]shells/bash: update to 3.2.39 Message-ID: <200805020912.m429C2Tk074826@www.freebsd.org> Resent-Message-ID: <200805020920.m429K0ji051292@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 123326 >Category: ports >Synopsis: [PATCH]shells/bash: update to 3.2.39 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri May 02 09:20:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: bf >Release: 7-STABLE i386 >Organization: - >Environment: >Description: Update to patchlevel 39. Bugs addressed: "The bash getcwd replacement will write past the end of allocated memory when it allocates the buffer itself if it uses the buffer size passed as an argument, and that size is less than the length of the pathname. Bash incorrectly puts the second and subsequent children spawned by a shell forked to run a command substitution in the wrong process group. When initializing a subshell, bash did not reset a sentinel keeping track of the number of command substitutions, leading to an infinite loop if an error was encountered in the subshell. Bash inappropriately evaluates command substitutions while expanding directory names as part of command substitution. When reading input lines into a single variable using the `read' builtin, bash did not free the memory it read after assigning it to the named variable, causing a memory leak noticeable when reading large amounts of data." Bash-3.2 changed the behavior of the [[ command's `=~' operator when the right-hand side was quoted: it matched the quoted portions as strings. This patch introduces a new shell option: compat31. When enabled, it restores the bash-3.1 behavior with respect to evaluating quoted arguments to the =~ operator. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN bash.orig/Makefile bash/Makefile --- bash.orig/Makefile 2008-02-21 00:13:38.000000000 -0500 +++ bash/Makefile 2008-05-02 03:50:06.452478362 -0400 @@ -7,7 +7,7 @@ # PORTNAME= bash -PATCHLEVEL= 33 +PATCHLEVEL= 39 PORTVERSION= 3.2.${PATCHLEVEL:S/^0//g} PORTREVISION?= 0 CATEGORIES= shells diff -ruN bash.orig/distinfo bash/distinfo --- bash.orig/distinfo 2008-02-21 00:13:38.000000000 -0500 +++ bash/distinfo 2008-05-02 03:50:06.452478362 -0400 @@ -100,5 +100,23 @@ MD5 (bash/bash32-033) = 3cec33c3711860c4c6b7614afeec7870 SHA256 (bash/bash32-033) = 9d7abee640dafbcdc6b75544015f3ffb5ed5aed2747465ec1412e959d3966740 SIZE (bash/bash32-033) = 2181 +MD5 (bash/bash32-034) = 7bc6c5b5f38b7027152f8db0458a2e14 +SHA256 (bash/bash32-034) = adc52e3427b606fe9649980b01c5b2b18f0509c4dd6d59a84f85b6a2989f9f8e +SIZE (bash/bash32-034) = 1866 +MD5 (bash/bash32-035) = a2db61fe90e39371d0e6cd2285ec9208 +SHA256 (bash/bash32-035) = d3d906b23fce195d5d6f0db8969fa5264e80a98b5460008d6a05e4156ca73953 +SIZE (bash/bash32-035) = 4805 +MD5 (bash/bash32-036) = 95c70c7ae9de5bd3659c86284be7fb76 +SHA256 (bash/bash32-036) = bdb24d65d1170234379fe587f5dc8b990c5e0c2d61c394bb8c81b91c1c64ce23 +SIZE (bash/bash32-036) = 1264 +MD5 (bash/bash32-037) = 62b876a3d7cd192cc8db2476fbb6b7b9 +SHA256 (bash/bash32-037) = 9688a352c0fb23d2ce6e685ce39cda1c49f4aa7819bde2508ff8c90003f484df +SIZE (bash/bash32-037) = 3227 +MD5 (bash/bash32-038) = aca3afc341bd3e5a0d8a3b4ca40dbb3f +SHA256 (bash/bash32-038) = 0e3649531c3a5675743980ecf5ff5fcbca2801afe4dca7fb4b250aae7ac3b782 +SIZE (bash/bash32-038) = 2412 +MD5 (bash/bash32-039) = e240c34f979b64bcb83c5f6567110bb1 +SHA256 (bash/bash32-039) = 46d427fd5b1509ec7dd980c07efd88634fde61cf07ab221dcbde9e1021bd2817 +SIZE (bash/bash32-039) = 5034 MD5 (bash/FAQ) = IGNORE SHA256 (bash/FAQ) = IGNORE >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805020912.m429C2Tk074826>