aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/unarchive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index a0cc28eca..3fbd6ef31 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -142,7 +142,7 @@ char *extract_archive(FILE *src_stream, FILE *out_stream, const file_header_t *f
/* Use create_path instead of mkdir incase prefix path
* hasnt been created */
if (function & extract_create_dirs) {
- if (create_path(full_name, file_entry->mode) == FALSE) {
+ if (make_directory(full_name, file_entry->mode, FILEUTILS_RECUR) < 0) {
return NULL;
}
}