src/pxar/sequential_decoder.rs: dump_entry - fix FIFO/SOCKET handling
This commit is contained in:
parent
7dfa17c7cc
commit
896e803feb
@ -498,8 +498,9 @@ impl <'a, R: Read> SequentialDecoder<'a, R> {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
} else if (ifmt == libc::S_IFBLK) || (ifmt == libc::S_IFCHR) ||
|
||||
(ifmt == libc::S_IFLNK) || (ifmt == libc::S_IFREG)
|
||||
{
|
||||
let head: CaFormatHeader = self.read_item()?;
|
||||
if verbose {
|
||||
print_head(&head);
|
||||
@ -530,8 +531,17 @@ impl <'a, R: Read> SequentialDecoder<'a, R> {
|
||||
panic!("got unexpected header type inside non-directory");
|
||||
}
|
||||
}
|
||||
} else if ifmt == libc::S_IFIFO {
|
||||
if verbose {
|
||||
println!("Fifo:");
|
||||
}
|
||||
} else if ifmt == libc::S_IFSOCK {
|
||||
if verbose {
|
||||
println!("Socket:");
|
||||
}
|
||||
} else {
|
||||
panic!("unknown st_mode");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user