mm(1): fixes to pledge(2) now; tests: bonsai/mm.mk: adds test for regression

This commit is contained in:
2024-08-17 14:58:56 -06:00
parent a4a556a5b6
commit e9058803d3
2 changed files with 10 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ fn main() -> ExitCode {
let usage = format!("Usage: {} [-aetu] [-i input] [-o output]", argv[0]);
if cfg!(target_os="openbsd") {
let promises = Promises::new("rpath stdio unveil");
let promises = Promises::new("cpath rpath stdio unveil wpath");
if let Err(e) = pledge(Some(promises), None) {
eprintln!("{}: {}", argv[0], e.strerror());
return ExitCode::from(EX_OSERR as u8);