fix bug 164017: deal with multiple and trailing "/" sequences in $ROOTDIR

This commit is contained in:
jvdias 2005-08-03 17:05:11 +00:00
parent c4c1d41f16
commit 4206716ead

View File

@ -26,6 +26,8 @@ prog="named"
[ -r ${ROOTDIR}/etc/named.conf ] || exit 1
[ -n "$ROOTDIR" ] && ROOTDIR=`echo $ROOTDIR | sed 's#//*#/#g;s#/$##'`
start() {
# Start daemons.
echo -n $"Starting $prog: "