diff options
Diffstat (limited to 'usr.bin/head/head.c')
-rw-r--r-- | usr.bin/head/head.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c index e5120e48d36..383a4ae0d6f 100644 --- a/usr.bin/head/head.c +++ b/usr.bin/head/head.c @@ -1,4 +1,4 @@ -/* $OpenBSD: head.c,v 1.19 2015/10/07 06:55:10 deraadt Exp $ */ +/* $OpenBSD: head.c,v 1.20 2015/10/09 01:37:07 deraadt Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. @@ -55,8 +55,8 @@ main(int argc, char *argv[]) char *p = NULL; int status = 0; - if (tame("stdio rpath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); /* handle obsolete -number syntax */ if (argc > 1 && argv[1][0] == '-' && @@ -90,8 +90,8 @@ main(int argc, char *argv[]) if (!firsttime) exit(status); fp = stdin; - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); } else { if ((fp = fopen(*argv, "r")) == NULL) { warn("%s", *argv++); |