summaryrefslogtreecommitdiff
path: root/usr.bin/printenv/printenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/printenv/printenv.c')
-rw-r--r--usr.bin/printenv/printenv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/printenv/printenv.c b/usr.bin/printenv/printenv.c
index a0be932b36d..fc0b225e410 100644
--- a/usr.bin/printenv/printenv.c
+++ b/usr.bin/printenv/printenv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printenv.c,v 1.7 2015/10/07 06:35:19 deraadt Exp $ */
+/* $OpenBSD: printenv.c,v 1.8 2015/10/09 01:37:08 deraadt Exp $ */
/*
* Copyright (c) 1987 Regents of the University of California.
@@ -48,8 +48,8 @@ main(int argc, char *argv[])
char *cp, **ep;
int len;
- if (tame("stdio", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
if (argc < 2) {
for (ep = environ; *ep; ep++)