=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/hexdump/hexdump.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/hexdump/hexdump.c 2015/01/16 06:40:08 1.17 +++ src/usr.bin/hexdump/hexdump.c 2015/10/05 06:36:18 1.18 @@ -1,4 +1,4 @@ -/* $OpenBSD: hexdump.c,v 1.17 2015/01/16 06:40:08 deraadt Exp $ */ +/* $OpenBSD: hexdump.c,v 1.18 2015/10/05 06:36:18 deraadt Exp $ */ /* $NetBSD: hexdump.c,v 1.7 1997/10/19 02:34:06 lukem Exp $ */ /* @@ -33,6 +33,7 @@ #include #include #include +#include #include #include "hexdump.h" @@ -52,6 +53,9 @@ { FS *tfs; char *p; + + if (tame("stdio rpath", NULL) == -1) + err(1, "tame"); if (!(p = strrchr(argv[0], 'o')) || strcmp(p, "od")) newsyntax(argc, &argv);