summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-09 01:37:11 +0000
commit7a01108f60e58c5683c269bbbb884090b5a0620f (patch)
treed28dc1713411066fb4ced6b7bb3fe35eb3a43955 /bin/ed
parent76228dc5f1e37f76feb11003febafceed8e121f0 (diff)
Change all tame callers to namechange to pledge(2).
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c
index ce29ed14c77..eb216fa5cab 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.49 2015/10/07 05:37:42 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.50 2015/10/09 01:37:06 deraadt Exp $ */
/* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */
/* main.c: This file contains the main control and user-interface routines
@@ -103,8 +103,8 @@ main(volatile int argc, char ** volatile argv)
int c, n;
int status = 0;
- if (tame("stdio rpath wpath cpath proc exec tty", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio rpath wpath cpath proc exec tty", NULL) == -1)
+ err(1, "pledge");
home = getenv("HOME");