summaryrefslogtreecommitdiffstats
path: root/libtar/wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);