some corrections
This commit is contained in:
parent
0f7f196b24
commit
c5e99f8afb
|
@ -96,7 +96,7 @@ async fn main() -> Result<(), Error> {
|
|||
println!("{:?}: {:?}, {:?}", entry.path(), file_type, entry.metadata().unwrap().permissions());
|
||||
if entry.metadata().unwrap().is_file() {
|
||||
let mut magic_number: [u8;4] = [0;4];
|
||||
let signature = File::open(entry.path().to_owned()).unwrap().read_exact(&mut magic_number).unwrap();
|
||||
let _signature = File::open(entry.path().to_owned()).unwrap().read_exact(&mut magic_number).unwrap();
|
||||
match magic_number {
|
||||
PCAPNG_SIGNATURE => println!("pcapng!"),
|
||||
PCAP_SIGNATURE => println!("pcap!"),
|
||||
|
|
Loading…
Reference in New Issue