]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Update pledge() interface to match current OpenBSD.
authorDarren Tucker <dtucker@dtucker.net>
Thu, 25 Sep 2025 08:06:55 +0000 (18:06 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 25 Sep 2025 08:24:02 +0000 (18:24 +1000)
ok djm@

openbsd-compat/bsd-misc.c
openbsd-compat/bsd-misc.h

index aea2ba67f07de38e9e66e1ebd994d32f2a3a03db..983cd3fe6216407b8e327f057b03cb8270077170 100644 (file)
@@ -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;
 }
index d237256d45fca70e91c5bb9fbe4cbba49c756f71..2ad89cd83b5958748721fe5fe9a6e30f15fa20f6 100644 (file)
@@ -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 */