]> git.meshlink.io Git - catta/commitdiff
init: Fix mandriva initscript to properly quote potentially empty variables when...
authorLennart Poettering <lennart@poettering.net>
Sat, 14 Nov 2009 01:00:18 +0000 (02:00 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 14 Nov 2009 01:03:54 +0000 (02:03 +0100)
http://avahi.org/ticket/281

Patch from the Mandriva guys:

http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/avahi/current/SOURCES/avahi-0.6.25-fix-chroot.patch?view=log

initscript/mandriva/avahi-daemon.in

index f285d3be39ff15405e8f9530d57cb71d9f9ef240..d81b9a246dc36f8a15da1b21fc256ab6a7f43d07 100644 (file)
@@ -17,7 +17,7 @@ test -x $AVAHI_BIN || exit 5
 . /etc/sysconfig/network
 
 # Check that networking is configured.
-[ ${NETWORKING} = "no" ] && exit 0
+[ "${NETWORKING}" = "no" ] && exit 0
 
 start() {
        echo -n $"Starting Avahi daemon: "