From: deraadt Date: Sat, 10 Oct 2015 14:33:02 +0000 (+0000) Subject: must also pledge "getpw", because it will use getpw* and getgr* functions. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=025c45fed4b09c098c7115797923d909347b038f;p=openbsd must also pledge "getpw", because it will use getpw* and getgr* functions. discussed with doug and semarie --- diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c index 6bbf831c625..aa60ee149b9 100644 --- a/usr.bin/getent/getent.c +++ b/usr.bin/getent/getent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getent.c,v 1.10 2015/10/10 05:26:57 doug Exp $ */ +/* $OpenBSD: getent.c,v 1.11 2015/10/10 14:33:02 deraadt Exp $ */ /* $NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $ */ /*- @@ -95,7 +95,7 @@ main(int argc, char *argv[]) { struct getentdb *curdb; - if (pledge("stdio dns rpath", NULL) == -1) + if (pledge("stdio dns rpath getpw", NULL) == -1) err(1, "pledge"); if (argc < 2)