From: Daniel Salzman Date: Mon, 24 Aug 2020 09:17:23 +0000 (+0200) Subject: ctl: set failed if backup in progress for some zones X-Git-Tag: v3.0.0~26^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c338ccbc4e650e27de3c2c7a342b3f2b6154ad;p=thirdparty%2Fknot-dns.git ctl: set failed if backup in progress for some zones --- diff --git a/src/knot/ctl/commands.c b/src/knot/ctl/commands.c index 2375277710..9c3237fcf2 100644 --- a/src/knot/ctl/commands.c +++ b/src/knot/ctl/commands.c @@ -434,6 +434,7 @@ static int zone_backup_cmd(zone_t *zone, ctl_args_t *args) zone_backup_ctx_t *ctx = args->custom_ctx; if (zone->backup_ctx != NULL) { log_zone_warning(zone->name, "back-up already in progress"); + args->failed = true; return KNOT_EPROGRESS; } zone->backup_ctx = ctx;