src/bin/pxar.rs: adapt to new deamonize flag

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-09-19 16:33:08 +02:00 committed by Dietmar Maurer
parent d388e244f5
commit 2fa91f5221
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,8 @@ fn mount_archive(
let options = OsStr::new("ro,default_permissions");
let mut session = pxar::fuse::Session::new(&archive, &options, verbose)
.map_err(|err| format_err!("pxar mount failed: {}", err))?;
session.mount(&mountpoint)?;
// Mount the session and deamonize if verbose is not set
session.mount(&mountpoint, !verbose)?;
session.run_loop(!no_mt)?;
Ok(Value::Null)