diff options
author | Ian Darwin <ian@cvs.openbsd.org> | 2009-11-21 19:31:41 +0000 |
---|---|---|
committer | Ian Darwin <ian@cvs.openbsd.org> | 2009-11-21 19:31:41 +0000 |
commit | 762c8306d8612bdec5bb72181d2d5793bc2adc68 (patch) | |
tree | 5f6d65c04173288908ae2fa95a1fcd8827fa653a /usr.sbin | |
parent | 1cf1a1bd7020fe96d6bca6d08f98733e1938d3ba (diff) |
MIN_UID in yp make removes root, so look for something that is
still likely: localhost in hosts map. ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ypserv/yptest/yptest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/yptest/yptest.c b/usr.sbin/ypserv/yptest/yptest.c index ec9a2b12a42..c0ead320f7a 100644 --- a/usr.sbin/ypserv/yptest/yptest.c +++ b/usr.sbin/ypserv/yptest/yptest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yptest.c,v 1.17 2009/10/27 23:59:58 deraadt Exp $ */ +/* $OpenBSD: yptest.c,v 1.18 2009/11/21 19:31:40 ian Exp $ */ /* * Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se> @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) { char *Domain, *Value, *Key2; - char *Map = "passwd.byname", *Key = "root"; + char *Map = "hosts.byname", *Key = "localhost"; int ValLen, Status, Order, KeyLen; struct ypall_callback Callback; struct ypmaplist *ypml, *y; @@ -60,7 +60,7 @@ main(int argc, char *argv[]) if (Status) printf("yp error: %s\n", yperr_string(Status)); - printf("Test 1: yp_match\n"); + printf("Test 1: yp_match %s %s\n", Key, Map); KeyLen = strlen(Key); Status = yp_match(Domain, Map, Key, KeyLen, &Value, &ValLen); if (Status) |