aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/tar.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/tar.c')
-rw-r--r--toys/pending/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/tar.c b/toys/pending/tar.c
index 4d6979db..c2946225 100644
--- a/toys/pending/tar.c
+++ b/toys/pending/tar.c
@@ -378,7 +378,7 @@ static void extract_to_disk(struct archive_handler *tar)
if (file_hdr->name[flags-1] == '/') file_hdr->name[flags-1] = 0;
//Regular file with preceding path
if ((s = strrchr(file_hdr->name, '/'))) {
- if (mkpathat(AT_FDCWD, file_hdr->name, 00, 2) && errno !=EEXIST) {
+ if (mkpath(file_hdr->name) && errno !=EEXIST) {
error_msg(":%s: not created", file_hdr->name);
return;
}