From 875ca304cd09704281b289266d8d0fcbb30e7a31 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 17 Oct 2021 12:36:09 -0400 Subject: Remove capsicum support --- client.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 29c8f38..787c56a 100644 --- a/client.c +++ b/client.c @@ -33,10 +33,6 @@ #include #include -#ifdef __FreeBSD__ -#include -#endif - #include "torus.h" #include "help.h" @@ -722,16 +718,6 @@ int main(int argc, char *argv[]) { if (error) err(EX_OSERR, "pledge"); #endif -#ifdef __FreeBSD__ - error = cap_enter(); - if (error) err(EX_OSERR, "cap_enter"); - - cap_rights_t rights; - cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_EVENT); - error = cap_rights_limit(client, &rights); - if (error) err(EX_OSERR, "cap_rights_limit"); -#endif - struct pollfd fds[2] = { { .fd = STDIN_FILENO, .events = POLLIN }, { .fd = client, .events = POLLIN }, -- cgit 1.4.1