summaryrefslogtreecommitdiffstats
path: root/libtar/wrapper.c
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-02-27 19:07:32 +0100
committerDees_Troy <dees_troy@teamw.in>2013-02-27 19:19:18 +0100
commitee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16 (patch)
tree1603fea0cb6c3882394f5764a057709aef1229b7 /libtar/wrapper.c
parentfix restore on mknod (diff)
downloadandroid_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.tar
android_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.tar.gz
android_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.tar.bz2
android_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.tar.lz
android_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.tar.xz
android_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.tar.zst
android_bootable_recovery-ee6632c3e184eb9ee28c4acf2e3bb1ca37a10c16.zip
Diffstat (limited to 'libtar/wrapper.c')
-rw-r--r--libtar/wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtar/wrapper.c b/libtar/wrapper.c
index 7cd8ed12c..4d8216241 100644
--- a/libtar/wrapper.c
+++ b/libtar/wrapper.c
@@ -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) != 0)
+ if (tar_extract_file(t, filename, prefix) != 0)
return -1;
}
@@ -86,7 +86,7 @@ tar_extract_all(TAR *t, char *prefix)
continue;
}
*/
- if (tar_extract_file(t, buf) != 0)
+ if (tar_extract_file(t, buf, prefix) != 0)
return -1;
}
return (i == 1 ? 0 : -1);