diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 14:33:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 14:33:03 +0000 |
commit | 9889415e26e55a98548d5b07f034a3f5f216cca6 (patch) | |
tree | 64a24f32f98b07e0e09f9a1732e0f0eb37f4fc89 /usr.bin | |
parent | bfc7869a002a064e8062ca8f3a649aa8eddc3f71 (diff) |
must also pledge "getpw", because it will use getpw* and getgr* functions.
discussed with doug and semarie
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/getent/getent.c | 4 |
1 files 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) |