=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/whois/whois.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- src/usr.bin/whois/whois.c 2015/10/03 01:33:20 1.49 +++ src/usr.bin/whois/whois.c 2015/10/09 01:37:09 1.50 @@ -1,4 +1,4 @@ -/* $OpenBSD: whois.c,v 1.49 2015/10/03 01:33:20 deraadt Exp $ */ +/* $OpenBSD: whois.c,v 1.50 2015/10/09 01:37:09 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -138,8 +138,8 @@ if (!argc || (country != NULL && host != NULL)) usage(); - if (tame("stdio dns inet", NULL) == -1) - err(1, "tame"); + if (pledge("stdio dns inet", NULL) == -1) + err(1, "pledge"); if (host == NULL && country == NULL && !(flags & WHOIS_QUICK)) flags |= WHOIS_RECURSE;