untrusted comment: verify with openbsd-77-base.pub
RWSbCCUoGpcxVRznFtczweGRPo6lRFqIYInRBhSsjD+iJpREO7aZABi2BfAAaXTugFYjZJnNE/FEYy6PxSS32MA5OjxK+wF0pQ8=

OpenBSD 7.7 errata 023, March 2, 2026:

In ldconfig(8), stop userland from using pledge(2) "tmppath" because
the kernel feature will be removed soon.

Apply by doing:
    signify -Vep /etc/signify/openbsd-77-base.pub -x 023_tmppath.patch.sig \
        -m - | (cd /usr/src && patch -p0)

And then rebuild and install ldconfig:
    cd /usr/src/libexec/ld.so/ldconfig
    make obj
    make
    make install

Index: libexec/ld.so/ldconfig/ldconfig.c
===================================================================
RCS file: /cvs/src/libexec/ld.so/ldconfig/ldconfig.c,v
diff -u -p -u -r1.39 ldconfig.c
--- libexec/ld.so/ldconfig/ldconfig.c	24 Oct 2021 21:24:20 -0000	1.39
+++ libexec/ld.so/ldconfig/ldconfig.c	27 Feb 2026 20:24:21 -0000
@@ -94,7 +94,7 @@ main(int argc, char *argv[])
 	int i, c;
 	int rval = 0;
 
-	if (pledge("stdio rpath wpath cpath tmppath fattr", NULL) == -1)
+	if (pledge("stdio rpath wpath cpath fattr", NULL) == -1)
 		err(1, "pledge");
 
 	while ((c = getopt(argc, argv, "DmPrRsSUv")) != -1) {
