diff options
author | 2015-10-09 01:37:06 +0000 | |
---|---|---|
committer | 2015-10-09 01:37:06 +0000 | |
commit | 0bd1216cbfac4316d823b5f086842b66ddea2018 (patch) | |
tree | fd4a00b7f31d65ad01880d2fd2d63c87485cacec /usr.bin/patch/patch.c | |
parent | tame -> pledge. (diff) | |
download | wireguard-openbsd-0bd1216cbfac4316d823b5f086842b66ddea2018.tar.xz wireguard-openbsd-0bd1216cbfac4316d823b5f086842b66ddea2018.zip |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index ad477a2bd1e..0d0c5058484 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.58 2015/10/07 06:29:26 deraadt Exp $ */ +/* $OpenBSD: patch.c,v 1.59 2015/10/09 01:37:08 deraadt Exp $ */ /* * patch - a program to apply diffs to original files @@ -147,8 +147,8 @@ main(int argc, char *argv[]) const char *tmpdir; char *v; - if (tame("stdio rpath wpath cpath tmppath fattr proc exec", NULL) == -1) - perror("tame"); + if (pledge("stdio rpath wpath cpath tmppath fattr proc exec", NULL) == -1) + perror("pledge"); setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(stderr, NULL, _IOLBF, 0); |