From: Darren Tucker Date: Thu, 25 Sep 2025 08:06:55 +0000 (+1000) Subject: Update pledge() interface to match current OpenBSD. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35f3e2a41c2afe7a68a8a4efb3eb385e7f8d247d;p=thirdparty%2Fopenssh-portable.git Update pledge() interface to match current OpenBSD. ok djm@ --- 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 */