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.
This commit is contained in:
Glenn L McGrath
2003-01-28 01:45:48 +00:00
parent a99534354a
commit 21110a0aa2
3 changed files with 31 additions and 19 deletions

View File

@@ -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);