24850514 Check for empty DAEMON in quagga start method never fails.
authorBrian Utterback <brian.utterback@oracle.com>
Sat, 11 Mar 2017 13:08:13 -0800
changeset 7735 e1c4d574162f
parent 7734 d8ba818ea11a
child 7736 7176747c65c4
24850514 Check for empty DAEMON in quagga start method never fails.
components/quagga/patches/90-checkdaemon.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/quagga/patches/90-checkdaemon.patch	Sat Mar 11 13:08:13 2017 -0800
@@ -0,0 +1,24 @@
+This bug has been submitted to the Quagga community as bug
+https://bugzilla.quagga.net/show_bug.cgi?id=878
+This patch may be removed after upgrading to a version of Quagga with
+bug 878 fixed.
+
+*** solaris/quagga.init.in
+--- solaris/quagga.init.in
+*************** QUAGGA_METHOD="start"
+*** 127,133 ****
+  DAEMON="$1"
+  
+  # daemon path must be given
+! if [ -z "$DAEMON_PATH/$DAEMON" ]; then
+  	usage
+  	exit $SMF_EXIT_ERR_FATAL
+  fi
+--- 127,133 ----
+  DAEMON="$1"
+  
+  # daemon path must be given
+! if [ "$DAEMON_PATH/$DAEMON" = "/" ]; then
+  	usage
+  	exit $SMF_EXIT_ERR_FATAL
+  fi