From 0bd1216cbfac4316d823b5f086842b66ddea2018 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 9 Oct 2015 01:37:06 +0000 Subject: Change all tame callers to namechange to pledge(2). --- usr.bin/diff/diff.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.bin/diff/diff.c') diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index eb2d8e5d0a2..c37b8087918 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.62 2015/10/05 20:15:00 millert Exp $ */ +/* $OpenBSD: diff.c,v 1.63 2015/10/09 01:37:07 deraadt Exp $ */ /* * Copyright (c) 2003 Todd C. Miller @@ -212,11 +212,11 @@ main(int argc, char **argv) argv += optind; if (getenv("TMPDIR")) { - if (tame("stdio rpath wpath cpath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); } else { - if (tame("stdio rpath tmppath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath tmppath", NULL) == -1) + err(1, "pledge"); } /* -- cgit v1.2.3-59-g8ed1b