1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

fold(1): Revert incorrect r308432

As Jean-Sébastien notes, fold(1) requires handling argv-supplied files.  That
will require a slightly more sophisticated approach.

Reported by:	dumbbell@
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2016-11-15 00:24:18 +00:00
parent 7db788c66f
commit e961ace3ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308657

View File

@ -45,7 +45,6 @@ static char sccsid[] = "@(#)fold.c 8.1 (Berkeley) 6/6/93";
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <capsicum_helpers.h>
#include <err.h>
#include <limits.h>
#include <locale.h>
@ -73,9 +72,6 @@ main(int argc, char **argv)
(void) setlocale(LC_CTYPE, "");
if (caph_limit_stdio() < 0 || (cap_enter() < 0 && errno != ENOSYS))
err(1, "capsicum");
width = -1;
previous_ch = 0;
while ((ch = getopt(argc, argv, "0123456789bsw:")) != -1) {