rpms/radvd/devel radvd-1.1-string_cmp.patch, NONE, 1.1 radvd.spec, 1.42, 1.43

Martin Nagy (mnagy) fedora-extras-commits at redhat.com
Mon Feb 25 11:00:44 UTC 2008


Author: mnagy

Update of /cvs/extras/rpms/radvd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22207

Modified Files:
	radvd.spec 
Added Files:
	radvd-1.1-string_cmp.patch 
Log Message:
* Mon Feb 25 2008 Martin Nagy <mnagy at redhat.com> - 1.1-2
- fix up string comparison in init script (#427047)


radvd-1.1-string_cmp.patch:

--- NEW FILE radvd-1.1-string_cmp.patch ---
diff -up radvd-1.1/redhat/radvd.init.string_cmp radvd-1.1/redhat/radvd.init
--- radvd-1.1/redhat/radvd.init.string_cmp	2008-02-25 11:27:36.000000000 +0100
+++ radvd-1.1/redhat/radvd.init	2008-02-25 11:30:30.000000000 +0100
@@ -28,7 +28,7 @@
 
 [ -f /etc/sysconfig/radvd ] && . /etc/sysconfig/radvd
 
-if [ $1 == 'status' ]; then
+if [ "$1" == "status" ]; then
 	[ -f /usr/sbin/radvd ] || exit 4
 else 
 	[ -f /usr/sbin/radvd ] || exit 1
@@ -43,7 +43,7 @@ case "$1" in
   start)
 
 	# Check that networking is up.	
-	[ x${NETWORKING_IPV6} = "xyes" ] || exit 1
+	[ "${NETWORKING_IPV6}" = "yes" ] || exit 1
 
 	echo -n $"Starting $PROG: "
 	daemon radvd $OPTIONS


Index: radvd.spec
===================================================================
RCS file: /cvs/extras/rpms/radvd/devel/radvd.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- radvd.spec	25 Feb 2008 09:55:04 -0000	1.42
+++ radvd.spec	25 Feb 2008 11:00:07 -0000	1.43
@@ -5,7 +5,7 @@
 Summary:    A Router Advertisement daemon
 Name:       radvd
 Version:    1.1
-Release:    1%{?dist}
+Release:    2%{?dist}
 # The code includes the advertising clause, so it's GPL-incompatible
 License:    BSD-style
 Group:      System Environment/Daemons
@@ -18,6 +18,8 @@
 BuildRequires:      flex, byacc
 BuildRoot:          %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+Patch0: radvd-1.1-string_cmp.patch
+
 %description
 radvd is the router advertisement daemon for IPv6.  It listens to router
 solicitations and sends router advertisements as described in "Neighbor
@@ -31,6 +33,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b string_cmp
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIE" 
@@ -92,6 +95,9 @@
 %{_sbindir}/radvdump
 
 %changelog
+* Mon Feb 25 2008 Martin Nagy <mnagy at redhat.com> - 1.1-2
+- fix up string comparison in init script (#427047)
+
 * Mon Feb 25 2008 Martin Nagy <mnagy at redhat.com> - 1.1-1
 - update to new upstream version
 - remove patch fixed in upstream: initscript




More information about the fedora-extras-commits mailing list