=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/head/head.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/head/head.c 2015/10/07 06:55:10 1.19 --- src/usr.bin/head/head.c 2015/10/09 01:37:07 1.20 *************** *** 1,4 **** ! /* $OpenBSD: head.c,v 1.19 2015/10/07 06:55:10 deraadt Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. --- 1,4 ---- ! /* $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,62 **** char *p = NULL; int status = 0; ! if (tame("stdio rpath", NULL) == -1) ! err(1, "tame"); /* handle obsolete -number syntax */ if (argc > 1 && argv[1][0] == '-' && --- 55,62 ---- char *p = NULL; int status = 0; ! if (pledge("stdio rpath", NULL) == -1) ! err(1, "pledge"); /* handle obsolete -number syntax */ if (argc > 1 && argv[1][0] == '-' && *************** *** 90,97 **** if (!firsttime) exit(status); fp = stdin; ! if (tame("stdio", NULL) == -1) ! err(1, "tame"); } else { if ((fp = fopen(*argv, "r")) == NULL) { warn("%s", *argv++); --- 90,97 ---- if (!firsttime) exit(status); fp = stdin; ! if (pledge("stdio", NULL) == -1) ! err(1, "pledge"); } else { if ((fp = fopen(*argv, "r")) == NULL) { warn("%s", *argv++);