mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
prevent panic on broken tar checksum
This commit is contained in:
parent
47a59ea751
commit
7efd8638ce
@ -48,7 +48,7 @@ impl FileAdapter for TarAdapter {
|
|||||||
} = ai;
|
} = ai;
|
||||||
let mut archive = ::tar::Archive::new(&mut inp);
|
let mut archive = ::tar::Archive::new(&mut inp);
|
||||||
for entry in archive.entries()? {
|
for entry in archive.entries()? {
|
||||||
let mut file = entry.unwrap();
|
let mut file = entry?;
|
||||||
if Regular == file.header().entry_type() {
|
if Regular == file.header().entry_type() {
|
||||||
let path = PathBuf::from(file.path()?.to_owned());
|
let path = PathBuf::from(file.path()?.to_owned());
|
||||||
eprintln!(
|
eprintln!(
|
||||||
|
Loading…
Reference in New Issue
Block a user