=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/diff/diff.c,v retrieving revision 1.62 retrieving revision 1.63 diff -c -r1.62 -r1.63 *** src/usr.bin/diff/diff.c 2015/10/05 20:15:00 1.62 --- src/usr.bin/diff/diff.c 2015/10/09 01:37:07 1.63 *************** *** 1,4 **** ! /* $OpenBSD: diff.c,v 1.62 2015/10/05 20:15:00 millert Exp $ */ /* * Copyright (c) 2003 Todd C. Miller --- 1,4 ---- ! /* $OpenBSD: diff.c,v 1.63 2015/10/09 01:37:07 deraadt Exp $ */ /* * Copyright (c) 2003 Todd C. Miller *************** *** 212,222 **** argv += optind; if (getenv("TMPDIR")) { ! if (tame("stdio rpath wpath cpath", NULL) == -1) ! err(1, "tame"); } else { ! if (tame("stdio rpath tmppath", NULL) == -1) ! err(1, "tame"); } /* --- 212,222 ---- argv += optind; if (getenv("TMPDIR")) { ! if (pledge("stdio rpath wpath cpath", NULL) == -1) ! err(1, "pledge"); } else { ! if (pledge("stdio rpath tmppath", NULL) == -1) ! err(1, "pledge"); } /*