Revert r340385, strings capability mode

This needs to be reworked for bootstrapping.
This commit is contained in:
Ed Maste 2018-11-13 01:30:31 +00:00
parent 851f1a1121
commit 7ee126159f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340391

View File

@ -27,7 +27,6 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <capsicum_helpers.h>
#include <ctype.h>
#include <err.h>
#include <errno.h>
@ -189,12 +188,9 @@ main(int argc, char **argv)
if (!min_len)
min_len = 4;
if (!*argv) {
if (caph_limit_stdio() < 0 || caph_enter() < 0)
err(1, "unable to enter capability mode");
return (find_strings("{standard input}", 0, 0));
}
while (*argv) {
if (!*argv)
rc = find_strings("{standard input}", 0, 0);
else while (*argv) {
if (handle_file(*argv) != 0)
rc = 1;
argv++;