From 4add706092b1386ee1089ffd4b1a65fbf036f7b8 Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Wed, 22 May 2019 17:50:42 +0200 Subject: [PATCH] src/client/: pass dummy flags for xattrs and fcaps to pxar encoder/decoder. Signed-off-by: Christian Ebner --- src/client/pxar_backup_stream.rs | 4 +++- src/client/pxar_decode_writer.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/pxar_backup_stream.rs b/src/client/pxar_backup_stream.rs index 8258229f..c0cd193f 100644 --- a/src/client/pxar_backup_stream.rs +++ b/src/client/pxar_backup_stream.rs @@ -43,7 +43,9 @@ impl PxarBackupStream { let child = thread::spawn(move|| { let mut writer = unsafe { std::fs::File::from_raw_fd(tx) }; - if let Err(err) = pxar::Encoder::encode(path, &mut dir, &mut writer, all_file_systems, verbose) { + let no_xattrs = false; + let no_fcaps = false; + if let Err(err) = pxar::Encoder::encode(path, &mut dir, &mut writer, all_file_systems, verbose, no_xattrs, no_fcaps) { eprintln!("pxar encode failed - {}", err); } }); diff --git a/src/client/pxar_decode_writer.rs b/src/client/pxar_decode_writer.rs index 4c3a6f60..32fb1dd8 100644 --- a/src/client/pxar_decode_writer.rs +++ b/src/client/pxar_decode_writer.rs @@ -31,7 +31,9 @@ impl PxarDecodeWriter { let child = thread::spawn(move|| { let mut reader = unsafe { std::fs::File::from_raw_fd(rx) }; - let mut decoder = pxar::SequentialDecoder::new(&mut reader); + let no_xattrs = false; + let no_fcaps = false; + let mut decoder = pxar::SequentialDecoder::new(&mut reader, no_xattrs, no_fcaps); if let Err(err) = decoder.restore(&base, & |path| { if verbose {