mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
colrm(1): Capsicumise
Signed-off-by: Faraz Vahedi <[email protected]> Reviewed by: markj, oshogbo MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/1496
This commit is contained in:
1 parent
fc26f24b3e
commit
95498a5acc
1 file changed
+6
@@ -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 '?':
|
||||
|
||||
Reference in new issue
Block a user