[openssh-commits] [openssh] 03/04: Update pledge() interface to match current OpenBSD.
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Sep 25 18:25:33 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 35f3e2a41c2afe7a68a8a4efb3eb385e7f8d247d
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Thu Sep 25 18:06:55 2025 +1000
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 */
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list