ctdb-scripts: Quote some variable expansions
[samba.git] / ctdb / config / ctdbd_wrapper
index c007409cd4afe3cb798d490d791bd386c82c6312..caeb81a9e748e5c2076eed43e75a2082f51e00b1 100755 (executable)
@@ -214,7 +214,8 @@ start()
        ulimit -n $CTDB_MAX_OPEN_FILES
     fi
 
-    mkdir -p $(dirname "$pidfile")
+    _d=$(dirname "$pidfile")
+    mkdir -p "$_d"
 
     if [ -n "$CTDB_VALGRIND" -a "$CTDB_VALGRIND" != "no" ] ; then
        if [ "$CTDB_VALGRIND" = "yes" ] ; then