summaryrefslogtreecommitdiffstats
path: root/usr.bin/lock/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/lock/lock.c')
-rw-r--r--usr.bin/lock/lock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c
index b1a31dedcfc..572f501081e 100644
--- a/usr.bin/lock/lock.c
+++ b/usr.bin/lock/lock.c
@@ -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 @@ main(int argc, char *argv[])
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());