diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-07-03 22:09:22 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-07-09 15:52:18 +0200 |
commit | 1b7a31bd65d4e6bf5e337d6280e3d5319d460bef (patch) | |
tree | ebe7d27ea5681d1b3c772a7bc2e80025e94435a6 /libtar/wrapper.c | |
parent | Color in the console (diff) | |
download | android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.gz android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.bz2 android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.lz android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.xz android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.tar.zst android_bootable_recovery-1b7a31bd65d4e6bf5e337d6280e3d5319d460bef.zip |
Diffstat (limited to '')
-rw-r--r-- | libtar/wrapper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtar/wrapper.c b/libtar/wrapper.c index 708c845b9..82f045f7d 100644 --- a/libtar/wrapper.c +++ b/libtar/wrapper.c @@ -27,7 +27,7 @@ tar_extract_glob(TAR *t, char *globname, char *prefix) { char *filename; char buf[MAXPATHLEN]; - int i; + int i, fd = 0; while ((i = th_read(t)) == 0) { @@ -44,7 +44,7 @@ tar_extract_glob(TAR *t, char *globname, char *prefix) snprintf(buf, sizeof(buf), "%s/%s", prefix, filename); else strlcpy(buf, filename, sizeof(buf)); - if (tar_extract_file(t, filename, prefix) != 0) + if (tar_extract_file(t, filename, prefix, &fd) != 0) return -1; } @@ -53,7 +53,7 @@ tar_extract_glob(TAR *t, char *globname, char *prefix) int -tar_extract_all(TAR *t, char *prefix) +tar_extract_all(TAR *t, char *prefix, const int *progress_fd) { char *filename; char buf[MAXPATHLEN]; @@ -80,7 +80,7 @@ tar_extract_all(TAR *t, char *prefix) "\"%s\")\n", buf); #endif printf("item name: '%s'\n", filename); - if (tar_extract_file(t, buf, prefix) != 0) + if (tar_extract_file(t, buf, prefix, progress_fd) != 0) return -1; } return (i == 1 ? 0 : -1); |