hru(1): uses default Promises value for child processes
This commit is contained in:
parent
b8e5901d97
commit
73a75a32df
@ -95,7 +95,7 @@ fn main() -> ExitCode {
|
|||||||
|
|
||||||
#[cfg(target_os="openbsd")] {
|
#[cfg(target_os="openbsd")] {
|
||||||
let promises = Promises::new("stdio unveil");
|
let promises = Promises::new("stdio unveil");
|
||||||
if let Err(e) = pledge(Some(promises), None) {
|
if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
|
||||||
return err(&argv[0], e.strerror(), Some(EX_OSERR));
|
return err(&argv[0], e.strerror(), Some(EX_OSERR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user