diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-09 01:37:11 +0000 |
commit | 7a01108f60e58c5683c269bbbb884090b5a0620f (patch) | |
tree | d28dc1713411066fb4ced6b7bb3fe35eb3a43955 /usr.bin/from | |
parent | 76228dc5f1e37f76feb11003febafceed8e121f0 (diff) |
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'usr.bin/from')
-rw-r--r-- | usr.bin/from/from.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c index f6ecef03539..743e0981dc1 100644 --- a/usr.bin/from/from.c +++ b/usr.bin/from/from.c @@ -1,4 +1,4 @@ -/* $OpenBSD: from.c,v 1.21 2015/10/07 06:51:50 deraadt Exp $ */ +/* $OpenBSD: from.c,v 1.22 2015/10/09 01:37:07 deraadt Exp $ */ /* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */ /* @@ -74,16 +74,16 @@ main(int argc, char *argv[]) } argv += optind; - if (tame("stdio rpath getpw", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath getpw", NULL) == -1) + err(1, "pledge"); file = mail_spool(file, *argv); if ((fp = fopen(file, "r")) == NULL) { if (!fflag && errno == ENOENT) exit(EXIT_SUCCESS); err(1, "%s", file); } - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); for (newline = 1; (linelen = getline(&line, &linesize, fp)) != -1;) { if (*line == '\n') { newline = 1; |