=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/getopt/getopt.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/getopt/getopt.c 2015/10/07 06:39:16 1.9 +++ src/usr.bin/getopt/getopt.c 2015/10/09 01:37:07 1.10 @@ -1,4 +1,4 @@ -/* $OpenBSD: getopt.c,v 1.9 2015/10/07 06:39:16 deraadt Exp $ */ +/* $OpenBSD: getopt.c,v 1.10 2015/10/09 01:37:07 deraadt Exp $ */ /* * This material, written by Henry Spencer, was released by him @@ -18,8 +18,8 @@ int c; int status = 0; - if (tame("stdio", NULL) == -1) - err(1, "tame"); + if (pledge("stdio", NULL) == -1) + err(1, "pledge"); optind = 2; /* Past the program name and the option letters. */ while ((c = getopt(argc, argv, argv[1])) != -1)