Compare commits
No commits in common. "800a097903d3eeedd1eccba1ae663a419206fbc5" and "62ce28852429a5a0ef74c4cf270f2da0738cfd84" have entirely different histories.
800a097903
...
62ce288524
@ -95,7 +95,7 @@ fn main() -> ExitCode {
|
||||
|
||||
#[cfg(target_os="openbsd")] {
|
||||
let promises = Promises::new("stdio unveil");
|
||||
if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
|
||||
if let Err(e) = pledge(Some(promises), None) {
|
||||
return err(&argv[0], e.strerror(), Some(EX_OSERR));
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ fn main() -> ExitCode {
|
||||
|
||||
#[cfg(target_os="openbsd")] {
|
||||
let promises = Promises::new("stdio unveil");
|
||||
if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
|
||||
if let Err(e) = pledge(Some(promises), None) {
|
||||
return err(&argv[0], e.strerror(), EX_OSERR);
|
||||
}
|
||||
|
||||
|
@ -43,10 +43,6 @@ impl Promises {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Promises {
|
||||
fn default() -> Self { Promises::new("") }
|
||||
}
|
||||
|
||||
pub fn pledge(
|
||||
promises: Option<Promises>, execpromises: Option<Promises>
|
||||
) -> Result<(), Error> {
|
||||
|
@ -62,7 +62,7 @@ fn main() -> ExitCode {
|
||||
|
||||
#[cfg(target_os="openbsd")] {
|
||||
let promises = Promises::new("cpath rpath stdio unveil wpath");
|
||||
if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
|
||||
if let Err(e) = pledge(Some(promises), None) {
|
||||
return err(&argv[0], e, Some(EX_OSERR));
|
||||
}
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ fn main() -> ExitCode {
|
||||
|
||||
#[cfg(target_os="openbsd")] {
|
||||
let promises = Promises::new("stdio unveil");
|
||||
if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
|
||||
if let Err(e) = pledge(Some(promises), None) {
|
||||
return err(&argv[0], &e, Some(EX_OSERR));
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ fn main() -> ExitCode {
|
||||
|
||||
#[cfg(target_os="openbsd")] {
|
||||
let promises = Promises::new("stdio unveil");
|
||||
if let Err(e) = pledge(Some(promises), Some(Promises::default())) {
|
||||
if let Err(e) = pledge(Some(promises), None) {
|
||||
return err(&argv[0], e, EX_OSERR);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user