=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lock/lock.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- src/usr.bin/lock/lock.c 2015/10/07 04:05:24 1.29 +++ src/usr.bin/lock/lock.c 2015/10/09 01:37:08 1.30 @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.c,v 1.29 2015/10/07 04:05:24 deraadt Exp $ */ +/* $OpenBSD: lock.c,v 1.30 2015/10/09 01:37:08 deraadt Exp $ */ /* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */ /* @@ -90,8 +90,8 @@ usemine = 0; no_timeout = 0; - if (tame("stdio getpw rpath wpath tty", NULL) == -1) - err(1, "tame"); + if (pledge("stdio getpw rpath wpath tty", NULL) == -1) + err(1, "pledge"); if (!(pw = getpwuid(getuid()))) errx(1, "unknown uid %u.", getuid());