Skip to content

Commit

Permalink
fixup! backup: updated backup format (BACKUP_FORMAT_2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvasek-nic committed Jun 18, 2021
1 parent 3a72092 commit 2aedd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/knot/zone/backup.c
Expand Up @@ -509,7 +509,7 @@ int zone_backup(conf_t *conf, zone_t *zone)
break;
case BACKUP_FORMAT_2:
default:
backup_zfiles_dir = sprintf_alloc("%s/%s", ctx->backup_dir, "zonefiles");
backup_zfiles_dir = dir_file(ctx->backup_dir, "zonefiles");
ABORT_IF_ENOMEM(backup_zfiles_dir);
zone_name_str = knot_dname_to_str_alloc(zone->name);
ABORT_IF_ENOMEM(zone_name_str);
Expand Down

0 comments on commit 2aedd7d

Please sign in to comment.