From 9872cedfe9a473ff3aa2ddbce95085438a8cda0e Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 24 Oct 2016 14:38:11 +0000 Subject: [PATCH] Accepting request 437120 from home:Andreas_Schwab:Factory - no-null-warning.patch: Don't warn about null bytes in command substitution OBS-URL: https://build.opensuse.org/request/show/437120 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=222 --- bash.changes | 6 ++++++ bash.spec | 3 +++ no-null-warning.patch | 13 +++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 no-null-warning.patch diff --git a/bash.changes b/bash.changes index 5c5d8fcc..5d1eb43e 100644 --- a/bash.changes +++ b/bash.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 24 13:51:10 UTC 2016 - schwab@suse.de + +- no-null-warning.patch: Don't warn about null bytes in command + substitution + ------------------------------------------------------------------- Tue Oct 4 12:59:48 UTC 2016 - werner@suse.de diff --git a/bash.spec b/bash.spec index fc0ede2d..cbe3c5c4 100644 --- a/bash.spec +++ b/bash.spec @@ -98,6 +98,8 @@ Patch47: bash-4.3-perl522.patch Patch48: bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49: bash-4.3-pathtemp.patch +# PATCH-FIX-OPENSUSE Don't warn about null bytes in command substitution +Patch50: no-null-warning.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -306,6 +308,7 @@ done %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp +%patch50 -p1 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{rextend} for patch in ../readline-%{rl_vers}-patches/*; do diff --git a/no-null-warning.patch b/no-null-warning.patch new file mode 100644 index 00000000..22846376 --- /dev/null +++ b/no-null-warning.patch @@ -0,0 +1,13 @@ +Index: bash-4.4/subst.c +=================================================================== +--- bash-4.4.orig/subst.c ++++ bash-4.4/subst.c +@@ -5955,7 +5955,7 @@ read_comsub (fd, quoted, rflag) + + if (c == 0) + { +-#if 1 ++#if 0 + internal_warning ("%s", _("command substitution: ignored null byte in input")); + #endif + continue;