From 3ff5e1ef869c0f8438174f62edc1a95f6076f468 Mon Sep 17 00:00:00 2001 From: jamartis Date: Wed, 16 Feb 2022 15:20:45 +0000 Subject: [PATCH] Fix the issue with incorrect return values of some processes --- .gawk.metadata | 1 + gawk.spec | 8 ++++++-- proc-rv.patch | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .gawk.metadata create mode 100644 proc-rv.patch diff --git a/.gawk.metadata b/.gawk.metadata new file mode 100644 index 0000000..74e38e6 --- /dev/null +++ b/.gawk.metadata @@ -0,0 +1 @@ +02408f1be58747a0d8c16ef1d191398b4260c638 gawk-5.1.0.tar.xz diff --git a/gawk.spec b/gawk.spec index f2a5e5f..6196c90 100644 --- a/gawk.spec +++ b/gawk.spec @@ -47,7 +47,7 @@ Name: gawk Summary: The GNU version of the AWK text processing utility Version: 5.1.0 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3+ and GPLv2+ and LGPLv2+ and BSD @@ -115,7 +115,7 @@ BuildRequires: make # Upstream patches -- official upstream patches released by upstream since the # ---------------- last rebase that are necessary for any reason: #Patch000: example000.patch - +Patch001: proc-rv.patch #Parts of the patch dealing with .info files, were removed, some parts of documentation might be broken #Patch008: gawk-api-version.patch @@ -289,6 +289,10 @@ install -m 0644 -p doc/gawkinet.{pdf,ps} %{buildroot}%{_docdir}/%{name} # ============================================================================= %changelog +* Wed Feb 16 2022 Jakub Martisko - 5.1.0-6 +Fix the issue with incorect handling of return values of some processes +Resolves: rhbz#2055107 + * Mon Aug 09 2021 Mohan Boddu - 5.1.0-5 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688 diff --git a/proc-rv.patch b/proc-rv.patch new file mode 100644 index 0000000..3e2f342 --- /dev/null +++ b/proc-rv.patch @@ -0,0 +1,22 @@ +diff --git a/io.c b/io.c +index 1d440c1..07d8368 100644 +--- a/io.c ++++ b/io.c +@@ -2599,7 +2599,7 @@ wait_any(int interesting) /* pid of interest, if any */ + for (redp = red_head; redp != NULL; redp = redp->next) + if (interesting == redp->pid) { + redp->pid = -1; +- redp->status = status; ++ redp->status = sanitize_exit_status(status); + break; + } + } +@@ -2629,7 +2629,7 @@ wait_any(int interesting) /* pid of interest, if any */ + for (redp = red_head; redp != NULL; redp = redp->next) + if (pid == redp->pid) { + redp->pid = -1; +- redp->status = status; ++ redp->status = sanitize_exit_status(status); + break; + } + }