=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/fmt/fmt.c,v retrieving revision 1.32 retrieving revision 1.33 diff -c -r1.32 -r1.33 *** src/usr.bin/fmt/fmt.c 2015/10/05 06:21:15 1.32 --- src/usr.bin/fmt/fmt.c 2015/10/09 01:37:07 1.33 *************** *** 1,4 **** ! /* $OpenBSD: fmt.c,v 1.32 2015/10/05 06:21:15 deraadt Exp $ */ /* Sensible version of fmt * --- 1,4 ---- ! /* $OpenBSD: fmt.c,v 1.33 2015/10/09 01:37:07 deraadt Exp $ */ /* Sensible version of fmt * *************** *** 255,262 **** (void)setlocale(LC_CTYPE, ""); ! if (tame("stdio rpath", NULL) == -1) ! err(1, "tame"); /* 1. Grok parameters. */ while ((ch = getopt(argc, argv, "0123456789cd:hl:mnpst:w:")) != -1) { --- 255,262 ---- (void)setlocale(LC_CTYPE, ""); ! if (pledge("stdio rpath", NULL) == -1) ! err(1, "pledge"); /* 1. Grok parameters. */ while ((ch = getopt(argc, argv, "0123456789cd:hl:mnpst:w:")) != -1) { *************** *** 340,347 **** while (argc-- > 0) process_named_file(*argv++); } else { ! if (tame("stdio", NULL) == -1) ! err(1, "tame"); process_stream(stdin, "standard input"); } --- 340,347 ---- while (argc-- > 0) process_named_file(*argv++); } else { ! if (pledge("stdio", NULL) == -1) ! err(1, "pledge"); process_stream(stdin, "standard input"); }