no need to look in PATH

This commit is contained in:
prx 2022-08-22 15:02:17 +02:00
parent 9b755ab627
commit 3cadbbe7df

2
main.c
View File

@ -46,7 +46,7 @@ int main(int argc, char *argv[]){
switch (sock.ss_family) {
case AF_INET: /* FALLTHROUGH */
case AF_INET6:
execlp("/usr/bin/doas", "doas", "/sbin/pfctl", "-t", table, "-T", "add", ip, NULL);
execl("/usr/bin/doas", "doas", "/sbin/pfctl", "-t", table, "-T", "add", ip, NULL);
break;
default:
exit(2);