Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypbind When checking if /var/yp/binding/foo.ypserve...
details: https://anonhg.NetBSD.org/src/rev/c104b55ec501
branches: trunk
changeset: 765394:c104b55ec501
user: dholland <dholland%NetBSD.org@localhost>
date: Wed May 25 04:33:52 2011 +0000
description:
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.
diffstat:
usr.sbin/ypbind/ypbind.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 60094e8051a8 -r c104b55ec501 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c Wed May 25 02:11:16 2011 +0000
+++ b/usr.sbin/ypbind/ypbind.c Wed May 25 04:33:52 2011 +0000
@@ -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 <deraadt%fsa.ca@localhost>
@@ -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",
Home |
Main Index |
Thread Index |
Old Index