Commit 4eec99df authored by Libor Peltan's avatar Libor Peltan

ctl: fixed zone-flush command

parent 14960ca3
......@@ -313,7 +313,9 @@ static int zone_retransfer(zone_t *zone, ctl_args_t *args)
static int zone_flush(zone_t *zone, ctl_args_t *args)
{
if (MATCH_FILTER(args, CTL_FILTER_FLUSH_OUTDIR)) {
if (args->data[KNOT_CTL_IDX_FILTER] != NULL &&
strchr(args->data[KNOT_CTL_IDX_FILTER], CTL_FILTER_FLUSH_OUTDIR) != NULL) {
// ^^ this is different than macro MATCH_FILTER
return zone_dump_to_dir(conf(), zone, args->data[KNOT_CTL_IDX_DATA]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment