diff --git a/jot.c b/jot.c index 7024b95..4587783 100644 --- a/jot.c +++ b/jot.c @@ -48,9 +48,7 @@ __FBSDID("$FreeBSD: releng/12.1/usr.bin/jot/jot.c 351872 2019-09-05 16:52:55Z bd * * Author: John Kunze, Office of Comp. Affairs, UCB */ - -#include -#include +#include #include #include #include @@ -94,7 +92,6 @@ static void usage(void); int main(int argc, char **argv) { - cap_rights_t rights; bool have_format = false; bool infinity = false; bool nofinalnl = false; @@ -111,21 +108,10 @@ main(int argc, char **argv) long i; long reps = REPS_DEF; - if (caph_limit_stdio() < 0) - err(1, "unable to limit rights for stdio"); - cap_rights_init(&rights); - if (cap_rights_limit(STDIN_FILENO, &rights) < 0 && errno != ENOSYS) - err(1, "unable to limit rights for stdin"); - /* * Cache NLS data, for strerror, for err(3), before entering capability * mode. */ - caph_cache_catpages(); - - if (caph_enter() < 0) - err(1, "unable to enter capability mode"); - while ((ch = getopt(argc, argv, "b:cnp:rs:w:")) != -1) switch (ch) { case 'b':