Module Name: src
Committed By: dholland
Date: Wed May 25 04:33:52 UTC 2011
Modified Files:
src/usr.sbin/ypbind: ypbind.c
Log Message:
When checking if /var/yp/binding/foo.ypservers exists, use the domain
name of the domain being checked instead of the default domain name. Duh.
Necessary for PR 43900.
To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/usr.sbin/ypbind/ypbind.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/ypbind/ypbind.c
diff -u src/usr.sbin/ypbind/ypbind.c:1.86 src/usr.sbin/ypbind/ypbind.c:1.87
--- src/usr.sbin/ypbind/ypbind.c:1.86 Tue May 24 07:02:08 2011
+++ src/usr.sbin/ypbind/ypbind.c Wed May 25 04:33:52 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ypbind.c,v 1.86 2011/05/24 07:02:08 dholland Exp $ */
+/* $NetBSD: ypbind.c,v 1.87 2011/05/25 04:33:52 dholland Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <[email protected]>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.86 2011/05/24 07:02:08 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.87 2011/05/25 04:33:52 dholland Exp $");
#endif
#include <sys/types.h>
@@ -246,7 +246,7 @@
*/
dom->dom_ypbindmode = default_ypbindmode;
if (dom->dom_ypbindmode == YPBIND_DIRECT) {
- pathname = ypservers_filename(domainname);
+ pathname = ypservers_filename(dom->dom_name);
if (stat(pathname, &st) < 0) {
/* XXX syslog a warning here? */
DPRINTF("%s does not exist, defaulting to broadcast\n",