Skip to content
Snippets Groups Projects
Commit 4eec99df authored by Libor Peltan's avatar Libor Peltan
Browse files

ctl: fixed zone-flush command

parent 14960ca3
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment