summaryrefslogtreecommitdiff
path: root/usr.bin/tail
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tail')
-rw-r--r--usr.bin/tail/tail.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c
index 41eca1594be..e543e0b9b2f 100644
--- a/usr.bin/tail/tail.c
+++ b/usr.bin/tail/tail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tail.c,v 1.18 2015/10/07 03:49:41 deraadt Exp $ */
+/* $OpenBSD: tail.c,v 1.19 2015/10/09 01:37:09 deraadt Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -61,8 +61,8 @@ main(int argc, char *argv[])
int ch, first;
char *p;
- if (tame("stdio rpath", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
/*
* Tail's options are weird. First, -n10 is the same as -n-10, not
@@ -174,8 +174,8 @@ main(int argc, char *argv[])
(void)fclose(fp);
}
else {
- if (tame("stdio", NULL) == -1)
- err(1, "tame");
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
fname = "stdin";
is_stdin = 1;