=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/diff/diff.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -r1.59 -r1.60 --- src/usr.bin/diff/diff.c 2015/04/29 04:00:25 1.59 +++ src/usr.bin/diff/diff.c 2015/10/05 15:16:23 1.60 @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.59 2015/04/29 04:00:25 deraadt Exp $ */ +/* $OpenBSD: diff.c,v 1.60 2015/10/05 15:16:23 deraadt Exp $ */ /* * Copyright (c) 2003 Todd C. Miller @@ -217,6 +217,10 @@ argc -= optind; argv += optind; + if (lflag == 0) { + if (tame("stdio wpath rpath cpath tmppath", NULL) == -1) + err(1, "tame"); + } /* * Do sanity checks, fill in stb1 and stb2 and call the appropriate * driver routine. Both drivers use the contents of stb1 and stb2.