--- libexec/got-read-patch/got-read-patch.c.orig 2022-07-04 14:48:30 UTC +++ libexec/got-read-patch/got-read-patch.c @@ -35,6 +35,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include #include #include #include @@ -578,6 +579,11 @@ main(int argc, char **argv) /* revoke access to most system calls */ if (pledge("stdio recvfd", NULL) == -1) { err = got_error_from_errno("pledge"); + got_privsep_send_error(&ibuf, err); + return 1; + } + if (cap_enter() == -1) { + err = got_error_from_errno("cap_enter"); got_privsep_send_error(&ibuf, err); return 1; }