ctdb-scripts: Quote some variable expansions
[vlendec/samba-autobuild/.git] / ctdb / config / events.d / 50.samba
index 3fae7f81613458574deca647e14bd01c16fce233..7c3a804475fe0819a9279f7837af8952ae36d7d2 100755 (executable)
@@ -83,7 +83,7 @@ testparm_foreground_update ()
     _out="${smbconf_cache}.out"
     _err="${smbconf_cache}.err"
 
-    timeout $_timeout testparm -v -s >"$_out" 2>"$_err"
+    timeout "$_timeout" testparm -v -s >"$_out" 2>"$_err"
     case $? in
        0) : ;;
        124)
@@ -123,7 +123,7 @@ testparm_background_update ()
 {
     _timeout="$1"
 
-    testparm_foreground_update $_timeout >/dev/null 2>&1 </dev/null &
+    testparm_foreground_update "$_timeout" >/dev/null 2>&1 </dev/null &
 }
 
 testparm_cat ()