Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/tar-ng into odin
This commit is contained in:
commit
49f1954a57
@ -170,9 +170,8 @@ impl Node {
|
||||
} else if kind == Kind::Pipe {
|
||||
break 'blk FileType::Fifo;
|
||||
} else if kind == Kind::Normal {
|
||||
let mut len = meta.len();
|
||||
let mut data = Vec::with_capacity(len.try_into()?);
|
||||
len = reader.read_to_end(&mut data)?.try_into()?;
|
||||
let mut data = vec![];
|
||||
let len = reader.read_to_end(&mut data)?.try_into()?;
|
||||
let checksum = match algorithm {
|
||||
Algorithm::Md5 => {
|
||||
let mut hasher = Md5::new();
|
||||
|
Loading…
Reference in New Issue
Block a user