components/quagga/patches/90-checkdaemon.patch
author Brian Utterback <brian.utterback@oracle.com>
Fri, 03 Mar 2017 10:53:19 -0800
branchs11u3-sru
changeset 7929 27eab5dcdc0b
permissions -rw-r--r--
24850514 Check for empty DAEMON in quagga start method never fails.
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