mm(1): uses default for Promises

This commit is contained in:
Emma Tebibyte 2024-09-10 17:12:14 -06:00
parent e385d873ec
commit df0a236f81
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -62,7 +62,7 @@ fn main() -> ExitCode {
#[cfg(target_os="openbsd")] { #[cfg(target_os="openbsd")] {
let promises = Promises::new("cpath rpath stdio unveil wpath"); let promises = Promises::new("cpath rpath stdio unveil wpath");
if let Err(e) = pledge(Some(promises), None) { if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
return err(&argv[0], e, Some(EX_OSERR)); return err(&argv[0], e, Some(EX_OSERR));
} }
} }