systemd: Fix arguments to MaskUnitFiles

This commit is contained in:
Vicki Pfau 2024-05-02 17:46:47 -07:00
parent e38ac57891
commit b674f694af

View file

@ -50,6 +50,7 @@ trait SystemdManager {
&self, &self,
files: &[&str], files: &[&str],
runtime: bool, runtime: bool,
force: bool,
) -> Result<Vec<(String, String, String)>>; ) -> Result<Vec<(String, String, String)>>;
async fn unmask_unit_files( async fn unmask_unit_files(
@ -130,7 +131,7 @@ impl<'dbus> SystemdUnit<'dbus> {
pub async fn mask(&self) -> Result<bool> { pub async fn mask(&self) -> Result<bool> {
let manager = SystemdManagerProxy::new(&self.connection).await?; let manager = SystemdManagerProxy::new(&self.connection).await?;
let res = manager let res = manager
.mask_unit_files(&[self.name.as_str()], false) .mask_unit_files(&[self.name.as_str()], false, false)
.await?; .await?;
Ok(!res.is_empty()) Ok(!res.is_empty())
} }