From 7498b283ce2dd9dcc7ae1d404884f49eb09aa91d Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 11 Sep 2024 02:32:32 -0600 Subject: [PATCH] mm(1): updates to use new unveil api --- src/mm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm.rs b/src/mm.rs index 0565ecb..700082e 100644 --- a/src/mm.rs +++ b/src/mm.rs @@ -115,7 +115,7 @@ fn main() -> ExitCode { #[cfg(target_os="openbsd")] { for input in &ins { - let perms = UnveilPerms::new(vec!['r']); + let perms = UnveilPerms::new(['r']); if let Err(e) = unveil(Some(&input), Some(perms)) { return err(&argv[0], e, Some(EX_OSERR)); @@ -123,7 +123,7 @@ fn main() -> ExitCode { } for output in &outs { - let perms = UnveilPerms::new(vec!['c', 'w']); + let perms = UnveilPerms::new(['c', 'w']); if let Err(e) = unveil(Some(&output), Some(perms)) { return err(&argv[0], e, Some(EX_OSERR));