fix bug 164017: deal with multiple and trailing "/" sequences in $ROOTDIR
This commit is contained in:
parent
c4c1d41f16
commit
4206716ead
@ -26,6 +26,8 @@ prog="named"
|
|||||||
|
|
||||||
[ -r ${ROOTDIR}/etc/named.conf ] || exit 1
|
[ -r ${ROOTDIR}/etc/named.conf ] || exit 1
|
||||||
|
|
||||||
|
[ -n "$ROOTDIR" ] && ROOTDIR=`echo $ROOTDIR | sed 's#//*#/#g;s#/$##'`
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
# Start daemons.
|
# Start daemons.
|
||||||
echo -n $"Starting $prog: "
|
echo -n $"Starting $prog: "
|
||||||
|
Loading…
Reference in New Issue
Block a user