diff options
author | deraadt <deraadt@openbsd.org> | 2015-10-09 01:37:06 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2015-10-09 01:37:06 +0000 |
commit | 0bd1216cbfac4316d823b5f086842b66ddea2018 (patch) | |
tree | fd4a00b7f31d65ad01880d2fd2d63c87485cacec /usr.bin/uniq | |
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/uniq')
-rw-r--r-- | usr.bin/uniq/uniq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index 414be50c3fe..9404c7d738a 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uniq.c,v 1.21 2015/10/04 04:56:50 deraadt Exp $ */ +/* $OpenBSD: uniq.c,v 1.22 2015/10/09 01:37:09 deraadt Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* @@ -61,8 +61,8 @@ main(int argc, char *argv[]) int ch; char *prevline, *thisline; - if (tame("stdio rpath wpath cpath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); obsolete(argv); while ((ch = getopt(argc, argv, "cdf:s:u")) != -1) { @@ -122,8 +122,8 @@ main(int argc, char *argv[]) usage(); } - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); prevline = malloc(MAXLINELEN); thisline = malloc(MAXLINELEN); |