summaryrefslogtreecommitdiff
path: root/archival/libunarchive/data_extract_all.c
diff options
context:
space:
mode:
authorGlenn L McGrath2003-01-28 01:45:48 +0000
committerGlenn L McGrath2003-01-28 01:45:48 +0000
commit21110a0aa2bda7346bdd916bbc027dfa38ee7c12 (patch)
treee2ecea1661a39605675307f029bbacc68faa97e9 /archival/libunarchive/data_extract_all.c
parenta99534354a538573770d2b9835856fcfc017dab1 (diff)
downloadbusybox-21110a0aa2bda7346bdd916bbc027dfa38ee7c12.zip
busybox-21110a0aa2bda7346bdd916bbc027dfa38ee7c12.tar.gz
Fix long standing bug with old gnu tar files, add a check so tar will
complain "unknown file type" if it tries to extract an oldgnu tar file and TAR_FEATURE_OLDGNU_COMPATABILITY sint defined. Print a warning if unisupported gnu extensions are encountered.
Diffstat (limited to 'archival/libunarchive/data_extract_all.c')
-rw-r--r--archival/libunarchive/data_extract_all.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index 9c4510e..1eb8bb3 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -84,6 +84,8 @@ extern void data_extract_all(archive_handle_t *archive_handle)
perror_msg("Cannot create node %s", file_header->name);
}
break;
+ default:
+ error_msg_and_die("Unrecognised file type");
}
chmod(file_header->name, file_header->mode);