[dhcp/f14/master] Fix 11-dhclient to export variables (#702735)

Jiří Popelka jpopelka at fedoraproject.org
Mon May 9 12:23:50 UTC 2011


commit ab840f8c1c34ab7700d5926374ba9d384104ebd3
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Mon May 9 11:52:15 2011 +0200

    Fix 11-dhclient to export variables (#702735)

 11-dhclient |    3 ++-
 dhcp.spec   |    5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/11-dhclient b/11-dhclient
index 5842f82..97383ea 100755
--- a/11-dhclient
+++ b/11-dhclient
@@ -12,7 +12,8 @@ declare | LC_ALL=C grep '^DHCP4_[A-Z_]*=' | while read opt; do
     optname=${optname,,}
     optname=new_${optname#dhcp4_}
     optvalue=${opt#*=}
-    echo "$optname=$optvalue"
+    echo "export $optname=$optvalue"
+
 done
 )"
 
diff --git a/dhcp.spec b/dhcp.spec
index 667d752..1b74b72 100644
--- a/dhcp.spec
+++ b/dhcp.spec
@@ -12,7 +12,7 @@
 Summary:  Dynamic host configuration protocol software
 Name:     dhcp
 Version:  4.2.0
-Release:  21.%{patchver}%{?dist}
+Release:  22.%{patchver}%{?dist}
 # NEVER CHANGE THE EPOCH on this package.  The previous maintainer (prior to
 # dcantrell maintaining the package) made incorrect use of the epoch and
 # that's why it is at 12 now.  It should have never been used, but it was.
@@ -559,6 +559,9 @@ fi
 %attr(0644,root,root) %{_mandir}/man3/omapi.3.gz
 
 %changelog
+* Mon May 09 2011 Jiri Popelka <jpopelka at redhat.com> - 12:4.2.0-22.P1
+- Fix 11-dhclient to export variables (#702735)
+
 * Wed Apr 06 2011 Jiri Popelka <jpopelka at redhat.com> - 12:4.2.0-21.P2
 - Better fix for CVE-2011-0997: making domain-name check more lenient (#694005)
 


More information about the scm-commits mailing list