src/pxar/decoder.rs: pass flags for xattrs and fcaps to decoder.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-05-22 17:50:41 +02:00 committed by Dietmar Maurer
parent 1201360def
commit 54b14ad741
1 changed files with 3 additions and 2 deletions

View File

@ -34,9 +34,11 @@ impl <'a, R: Read + Seek> Decoder<'a, R> {
pub fn new(reader: &'a mut R) -> Result<Self, Error> { pub fn new(reader: &'a mut R) -> Result<Self, Error> {
let root_end = reader.seek(SeekFrom::End(0))?; let root_end = reader.seek(SeekFrom::End(0))?;
let no_xattrs = false;
let no_fcaps = false;
Ok(Self { Ok(Self {
inner: SequentialDecoder::new(reader), inner: SequentialDecoder::new(reader, no_xattrs, no_fcaps),
root_start: 0, root_start: 0,
root_end: root_end, root_end: root_end,
}) })
@ -48,7 +50,6 @@ impl <'a, R: Read + Seek> Decoder<'a, R> {
end: self.root_end, end: self.root_end,
filename: OsString::new(), // Empty filename: OsString::new(), // Empty
entry: CaFormatEntry { entry: CaFormatEntry {
feature_flags: 0,
mode: 0, mode: 0,
flags: 0, flags: 0,
uid: 0, uid: 0,