From 7a01108f60e58c5683c269bbbb884090b5a0620f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 9 Oct 2015 01:37:11 +0000 Subject: Change all tame callers to namechange to pledge(2). --- usr.bin/htpasswd/htpasswd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/htpasswd') diff --git a/usr.bin/htpasswd/htpasswd.c b/usr.bin/htpasswd/htpasswd.c index 1ac7a9fc331..fc285c24758 100644 --- a/usr.bin/htpasswd/htpasswd.c +++ b/usr.bin/htpasswd/htpasswd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: htpasswd.c,v 1.12 2015/10/07 06:44:01 deraadt Exp $ */ +/* $OpenBSD: htpasswd.c,v 1.13 2015/10/09 01:37:07 deraadt Exp $ */ /* * Copyright (c) 2014 Florian Obser * @@ -57,8 +57,8 @@ main(int argc, char** argv) ssize_t linelen; mode_t old_umask; - if (tame("stdio rpath wpath cpath tmppath tty", NULL) == -1) - err(1, "tame"); + if (pledge("stdio rpath wpath cpath tmppath tty", NULL) == -1) + err(1, "pledge"); while ((c = getopt(argc, argv, "I")) != -1) { switch (c) { -- cgit v1.2.3