=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dc/dc.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/dc/dc.c 2015/10/03 18:39:13 1.14 +++ src/usr.bin/dc/dc.c 2015/10/09 01:37:07 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.14 2015/10/03 18:39:13 deraadt Exp $ */ +/* $OpenBSD: dc.c,v 1.15 2015/10/09 01:37:07 deraadt Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek @@ -47,8 +47,8 @@ char *buf, *p; struct stat st; - if (tame("stdio rpath", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); if ((buf = strdup("")) == NULL) err(1, NULL); @@ -91,8 +91,8 @@ file = fopen(argv[0], "r"); if (file == NULL) err(1, "cannot open file %s", argv[0]); - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); if (fstat(fileno(file), &st) == -1) err(1, "%s", argv[0]); if (S_ISDIR(st.st_mode)) @@ -107,8 +107,8 @@ */ return (0); } - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); src_setstream(&src, stdin); reset_bmachine(&src); eval();