Skip to content

Commit

Permalink
bugfix for wrong goto branch
Browse files Browse the repository at this point in the history
Signed-off-by: zhongtao <[email protected]>
  • Loading branch information
zhongtao committed Mar 12, 2024
1 parent ce3bf10 commit c67760c
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 c67760c

Please sign in to comment.