]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/scripts/bacula-ctl-dir.in
A bug was introduced in with commit 5727. Restoretree and restore were
[bacula/bacula] / bacula / scripts / bacula-ctl-dir.in
index 37d22aff86c52e189545d9528fa53b0ca7ea8bd4..a455f93857344b622ce3511600e703de9bc11a51 100644 (file)
@@ -208,7 +208,11 @@ case "$1" in
            OPTIONS="${OPTIONS} -g ${DIR_GROUP}"
         fi
 
-        ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
+        if [ "x${VALGRIND}" = "x1" ]; then
+           valgrind --leak-check=full ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
+        else
+           ${BACDIRBIN}/bacula-dir $2 ${OPTIONS} -v -c ${BACDIRCFG}/bacula-dir.conf
+        fi
       }
       ;;