From: | "Lars Wendler (polynomial-c)" <polynomial-c@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-shells/bash/files: bash-4.3-lastpipe-nested-pipe-segfault.patch |
Date: | Tue, 08 Jul 2014 08:54:54 |
Message-Id: | 20140708085451.0616B2004F@flycatcher.gentoo.org |
1 | polynomial-c 14/07/08 08:54:50 |
2 | |
3 | Added: bash-4.3-lastpipe-nested-pipe-segfault.patch |
4 | Log: |
5 | Revbump to fix a segfault in lastpipe mode. Removed old |
6 | |
7 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
8 | |
9 | Revision Changes Path |
10 | 1.1 app-shells/bash/files/bash-4.3-lastpipe-nested-pipe-segfault.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash/files/bash-4.3-lastpipe-nested-pipe-segfault.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/bash/files/bash-4.3-lastpipe-nested-pipe-segfault.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: bash-4.3-lastpipe-nested-pipe-segfault.patch |
16 | =================================================================== |
17 | *** ../bash-4.3-patched/execute_cmd.c 2014-01-31 10:54:52.000000000 -0500 |
18 | --- execute_cmd.c 2014-06-19 08:05:49.000000000 -0400 |
19 | *************** |
20 | *** 2410,2414 **** |
21 | lstdin = wait_for (lastpid); |
22 | #if defined (JOB_CONTROL) |
23 | ! exec_result = job_exit_status (lastpipe_jid); |
24 | #endif |
25 | unfreeze_jobs_list (); |
26 | --- 2425,2438 ---- |
27 | lstdin = wait_for (lastpid); |
28 | #if defined (JOB_CONTROL) |
29 | ! /* If wait_for removes the job from the jobs table, use result of last |
30 | ! command as pipeline's exit status as usual. The jobs list can get |
31 | ! frozen and unfrozen at inconvenient times if there are multiple pipelines |
32 | ! running simultaneously. */ |
33 | ! if (INVALID_JOB (lastpipe_jid) == 0) |
34 | ! exec_result = job_exit_status (lastpipe_jid); |
35 | ! else if (pipefail_opt) |
36 | ! exec_result = exec_result | lstdin; /* XXX */ |
37 | ! /* otherwise we use exec_result */ |
38 | ! |
39 | #endif |
40 | unfreeze_jobs_list (); |