From d388e244f5071265ba2c6253c95f574094aca70e Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Thu, 19 Sep 2019 16:33:07 +0200 Subject: [PATCH] src/pxar/fuse.rs: make verbose flag independent from deamonize by adding this as new flag Signed-off-by: Christian Ebner --- src/pxar/fuse.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pxar/fuse.rs b/src/pxar/fuse.rs index e8ea1ec3..11fa7f7c 100644 --- a/src/pxar/fuse.rs +++ b/src/pxar/fuse.rs @@ -275,7 +275,7 @@ impl Session { /// /// Actually mount the filesystem for this session on the provided mountpoint /// and daemonize process. - pub fn mount(&mut self, mountpoint: &Path) -> Result<(), Error> { + pub fn mount(&mut self, mountpoint: &Path, deamonize: bool) -> Result<(), Error> { if self.verbose { println!("Mounting archive to {:#?}", mountpoint); } @@ -286,8 +286,8 @@ impl Session { bail!("mounting on {:#?} failed", mountpoint); } - // Do not send process to background if verbose flag is set - if !self.verbose && unsafe { fuse_daemonize(0) } != 0 { + // Send process to background if deamonize is set + if deamonize && unsafe { fuse_daemonize(0) } != 0 { bail!("could not send process to background"); }