From 025c45fed4b09c098c7115797923d909347b038f Mon Sep 17 00:00:00 2001 From: deraadt Date: Sat, 10 Oct 2015 14:33:02 +0000 Subject: [PATCH] must also pledge "getpw", because it will use getpw* and getgr* functions. discussed with doug and semarie --- usr.bin/getent/getent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1