=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/unvis/unvis.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/unvis/unvis.c 2014/01/22 09:45:21 1.12 +++ src/usr.bin/unvis/unvis.c 2015/10/06 22:58:24 1.13 @@ -1,4 +1,4 @@ -/* $OpenBSD: unvis.c,v 1.12 2014/01/22 09:45:21 jsg Exp $ */ +/* $OpenBSD: unvis.c,v 1.13 2015/10/06 22:58:24 deraadt Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -43,6 +43,9 @@ FILE *fp; int ch; + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); + while ((ch = getopt(argc, argv, "")) != -1) switch(ch) { case '?': @@ -62,8 +65,12 @@ warn("%s", *argv); argv++; } - else + else { + if (tame("stdio", NULL) == -1) + err(1, "tame"); + process(stdin, ""); + } exit(0); }