Skip to content

Commit

Permalink
!2383 bugfix for wrong goto branch
Browse files Browse the repository at this point in the history
From: @taotao-sauce 
Reviewed-by: @xuxuepeng, @duguhaotian 
Signed-off-by: @duguhaotian
  • Loading branch information
openeuler-ci-bot authored and gitee-org committed Mar 12, 2024
2 parents ce3bf10 + c67760c commit 11fa836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/tar/isulad_tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ int archive_copy_to(const struct io_read_wrapper *content, const struct archive_

if (realpath(dstdir, cleanpath) == NULL) {
ERROR("Failed to get real path for %s", dstdir);
return -1;
goto cleanup;
}

ret = archive_chroot_untar_stream(content, cleanpath, ".", src_base, dst_base, root_dir, err);
Expand Down Expand Up @@ -448,7 +448,7 @@ static int tar_resource_rebase(const char *path, const char *rebase, const char

if (realpath(srcdir, cleanpath) == NULL) {
ERROR("Failed to get real path for %s", srcdir);
return -1;
goto cleanup;
}

DEBUG("chroot tar stream srcdir(%s) srcbase(%s) rebase(%s)", srcdir, srcbase, rebase);
Expand Down

0 comments on commit 11fa836

Please sign in to comment.