summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-10-10 21:50:05 +0000
committerdoug <doug@openbsd.org>2015-10-10 21:50:05 +0000
commitdd884e3b872e7a9f07461fcaf950f39be411cfc4 (patch)
tree7abe2ab1e71fa7e1a82d2ef13d3360850b3680a6
parentpledge "stdio rpath wpath cpath" (diff)
downloadwireguard-openbsd-dd884e3b872e7a9f07461fcaf950f39be411cfc4.tar.xz
wireguard-openbsd-dd884e3b872e7a9f07461fcaf950f39be411cfc4.zip
Fix YP user and group support in getent(1).
These should have been "stdio getpw" before, but they worked for non-YP environments. With YP, it won't work without "getpw". Reported by semarie@ and confirmed as a problem by miod@. ok deraadt@
-rw-r--r--usr.bin/getent/getent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c
index aa60ee149b9..3b2f30df89c 100644
--- a/usr.bin/getent/getent.c
+++ b/usr.bin/getent/getent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getent.c,v 1.11 2015/10/10 14:33:02 deraadt Exp $ */
+/* $OpenBSD: getent.c,v 1.12 2015/10/10 21:50:05 doug Exp $ */
/* $NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $ */
/*-
@@ -79,9 +79,9 @@ static struct getentdb {
const char *pledge;
} databases[] = {
{ "ethers", ethers, "stdio rpath" },
- { "group", group, "stdio rpath" },
+ { "group", group, "stdio getpw" },
{ "hosts", hosts, "stdio dns" },
- { "passwd", passwd, "stdio rpath" },
+ { "passwd", passwd, "stdio getpw" },
{ "protocols", protocols, "stdio rpath" },
{ "rpc", rpc, "stdio rpath" },
{ "services", services, "stdio rpath" },