mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
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:
parent
fc26f24b3e
commit
95498a5acc
1 changed files with 6 additions and 0 deletions
|
|
@ -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 '?':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue