colrm(1): Capsicumise

Signed-off-by: Faraz Vahedi <kfv@kfv.io>
Reviewed by:	markj, oshogbo
MFC after:	1 week
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1496
This commit is contained in:
Faraz Vahedi 2024-10-27 12:31:01 +03:30 committed by Mariusz Zaborski
parent fc26f24b3e
commit 95498a5acc

View file

@ -40,6 +40,8 @@
#include <unistd.h>
#include <wchar.h>
#include <capsicum_helpers.h>
#define TAB 8
void check(FILE *);
@ -54,6 +56,10 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
caph_cache_catpages();
if (caph_limit_stdio() < 0 || caph_enter() < 0)
err(EXIT_FAILURE, "capsicum");
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':