[bash] Builtins like echo and printf won't report errors when output does not succeed due to EPIPE.

Roman Rakus rrakus at fedoraproject.org
Thu Jan 6 17:11:36 UTC 2011


commit 5e32c353de294df45dd6fd45e5605cf9548d5ed7
Author: Roman Rakus <rrakus at redhat.com>
Date:   Thu Jan 6 18:10:59 2011 +0100

    Builtins like echo and printf won't report errors
    when output does not succeed due to EPIPE.
    
    Signed-off-by: Roman Rakus <rrakus at redhat.com>

 bash-4.1-broken_pipe.patch |   12 ++++++++++++
 bash.spec                  |   11 ++++++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/bash-4.1-broken_pipe.patch b/bash-4.1-broken_pipe.patch
new file mode 100644
index 0000000..e083374
--- /dev/null
+++ b/bash-4.1-broken_pipe.patch
@@ -0,0 +1,12 @@
+diff -up bash-4.1/config-top.h.broken_pipe bash-4.1/config-top.h
+--- bash-4.1/config-top.h.broken_pipe	2011-01-06 18:01:30.000000000 +0100
++++ bash-4.1/config-top.h	2011-01-06 18:02:14.000000000 +0100
+@@ -51,7 +51,7 @@
+ /* Define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS if you don't want builtins
+    like `echo' and `printf' to report errors when output does not succeed
+    due to EPIPE. */
+-/* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */
++#define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS
+ 
+ /* The default value of the PATH variable. */
+ #ifndef DEFAULT_PATH_VALUE
diff --git a/bash.spec b/bash.spec
index 0c39793..c544c73 100644
--- a/bash.spec
+++ b/bash.spec
@@ -6,7 +6,7 @@
 Version: %{baseversion}%{patchleveltag}
 Name: bash
 Summary: The GNU Bourne Again shell
-Release: 4%{?dist}
+Release: 5%{?dist}
 Group: System Environment/Shells
 License: GPLv3+
 Url: http://www.gnu.org/software/bash
@@ -59,6 +59,10 @@ Patch124: bash-4.1-examples.patch
 # with bad array subsrcipt
 Patch125: bash-4.1-bind_int_variable.patch
 
+# Builtins like echo and printf won't report errors
+# when output does not succeed due to EPIPE
+Patch126: bash-4.1-broken_pipe.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: texinfo bison
@@ -117,6 +121,7 @@ This package contains documentation files for %{name}.
 %patch123 -p1 -b .nobits
 %patch124 -p1 -b .examples
 %patch125 -p1 -b .bind_int_variable
+%patch126 -p1 -b .broken_pipe
 
 echo %{version} > _distribution
 echo %{release} > _patchlevel
@@ -295,6 +300,10 @@ fi
 #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
 
 %changelog
+* Thu Jan 06 2011 Roman Rakus <rrakus at redhat.com> - 4.1.9-5
+- Builtins like echo and printf won't report errors
+  when output does not succeed due to EPIPE
+
 * Thu Dec 16 2010 Roman Rakus <rrakus at redhat.com> - 4.1.9-4
 - Drop doc/examples/loadables
 


More information about the scm-commits mailing list