-/* $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
FILE *fp;
int ch;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
warn("%s", *argv);
argv++;
}
- else
+ else {
+ if (tame("stdio", NULL) == -1)
+ err(1, "tame");
+
process(stdin, "<stdin>");
+ }
exit(0);
}