[bash/f18] Don't filter out environmental variables with a dot in the name

Ondrej Oprala ooprala at fedoraproject.org
Tue Aug 21 11:09:29 UTC 2012


commit 13138f2e0b720a3320a69a46e650620d7c57f7cf
Author: Ondrej Oprala <ooprala at redhat.com>
Date:   Tue Aug 21 13:06:54 2012 +0200

    Don't filter out environmental variables with a dot in the name
    
    Resolves: #819995

 bash-4.2-dotted_variables.patch |   12 ++++++++++++
 bash.spec                       |   12 +++++++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/bash-4.2-dotted_variables.patch b/bash-4.2-dotted_variables.patch
new file mode 100644
index 0000000..48dd671
--- /dev/null
+++ b/bash-4.2-dotted_variables.patch
@@ -0,0 +1,12 @@
+diff -up bash-4.2/general.h.patch bash-4.2/general.h
+--- bash-4.2/general.h.patch	2012-08-21 12:55:22.327976931 +0200
++++ bash-4.2/general.h	2012-08-21 12:56:53.623828073 +0200
+@@ -104,7 +104,7 @@ extern char *strcpy __P((char *, const c
+ 
+ /* Define exactly what a legal shell identifier consists of. */
+ #define legal_variable_starter(c) (ISALPHA(c) || (c == '_'))
+-#define legal_variable_char(c)	(ISALNUM(c) || c == '_')
++#define legal_variable_char(c)	(ISALNUM(c) || c == '_'|| c == '.')
+ 
+ /* Definitions used in subst.c and by the `read' builtin for field
+    splitting. */
diff --git a/bash.spec b/bash.spec
index 20d4c47..66984a0 100644
--- a/bash.spec
+++ b/bash.spec
@@ -6,7 +6,7 @@
 Version: %{baseversion}%{patchleveltag}
 Name: bash
 Summary: The GNU Bourne Again shell
-Release: 3%{?dist}
+Release: 4%{?dist}
 Group: System Environment/Shells
 License: GPLv3+
 Url: http://www.gnu.org/software/bash
@@ -95,6 +95,10 @@ Patch121: bash-4.2-coverity.patch
 # Don't call malloc in signal handler
 Patch122: bash-4.1-defer-sigchld-trap.patch
 
+# Bash filters out environmental variables containing a dot
+# in the name
+Patch123: bash-4.2-dotted_variables.patch
+
 BuildRequires: texinfo bison
 BuildRequires: ncurses-devel
 BuildRequires: autoconf, gettext
@@ -184,6 +188,7 @@ This package contains documentation files for %{name}.
 %patch120 -p1 -b .logout
 %patch121 -p1 -b .coverity
 %patch122 -p1 -b .defer_sigchld_trap
+%patch123 -p1 -b .dotted_variables
 
 echo %{version} > _distribution
 echo %{release} > _patchlevel
@@ -374,6 +379,11 @@ end
 #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
 
 %changelog
+* Tue Aug 21 2012 Ondrej Oprala <ooprala at redhat.com> - 4.2.37-4
+- Don't filter out environmental variables with
+  a dot in the name
+  Resolves: #819995
+
 * Tue Jul 24 2012 Roman Rakus <rrakus at redhat.com> - 4.2.37-3
 - Increment patchlevel tag
 


More information about the scm-commits mailing list