From 35f3e2a41c2afe7a68a8a4efb3eb385e7f8d247d Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 25 Sep 2025 18:06:55 +1000 Subject: [PATCH] Update pledge() interface to match current OpenBSD. ok djm@ --- openbsd-compat/bsd-misc.c | 2 +- openbsd-compat/bsd-misc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index aea2ba67f..983cd3fe6 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c @@ -403,7 +403,7 @@ getpgid(pid_t pid) #ifndef HAVE_PLEDGE int -pledge(const char *promises, const char *paths[]) +pledge(const char *promises, const char *execpromises) { return 0; } diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index d237256d4..2ad89cd83 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h @@ -156,7 +156,7 @@ int pselect(int, fd_set *, fd_set *, fd_set *, const struct timespec *, #endif #ifndef HAVE_PLEDGE -int pledge(const char *promises, const char *paths[]); +int pledge(const char *promises, const char *execpromises); #endif /* bsd-err.h */