NetBSD Problem Report #1144

From gnats  Tue Jun 20 05:05:26 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id FAA25822 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 20 Jun 1995 05:05:19 -0400
Message-Id: <199506111819.UAA01450@rtfm.imf.unit.no>
Date: Sun, 11 Jun 1995 20:19:46 +0200
From: Arne Henrik Juul <arnej@imf.unit.no>
Reply-To: arnej@imf.unit.no
To: gnats-bugs@NetBSD.ORG
Subject: ypset 'hostname' silently fails
X-Send-Pr-Version: 3.2

>Number:         1144
>Category:       bin
>Synopsis:       ypset sets the wrong address
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 20 05:20:03 +0000 1995
>Closed-Date:    Mon Jun 26 07:16:06 +0000 1995
>Last-Modified:  
>Originator:     
>Release:        NetBSD-current, current as of about 9 Jun 1995
>Organization:
	University of Trondheim, Norway
>Environment:

System: NetBSD rtfm.imf.unit.no 1.0A NetBSD 1.0A (RTFM) #1: Sun Jun 11 18:53:58 MET DST 1995 root@rtfm.imf.unit.no:/usr/src/sys/arch/i386/compile/RTFM i386

>Description:
	A typo in ypset.c makes ypset set the wrong address.
>How-To-Repeat:
	ypset hostname.foo.bar.edu ; ypwhich
>Fix:
--- ypset.c	Sat May 20 12:15:50 1995
+++ ypset.c.mod	Sun Jun 11 20:06:10 1995
@@ -78,7 +78,7 @@
 			fprintf(stderr, "ypset: can't find address for %s\n", server);
 			exit(1);
 		}
-		bcopy(&hp->h_addr, &ypsd.ypsetdom_addr, sizeof(ypsd.ypsetdom_addr));
+		bcopy(hp->h_addr, &ypsd.ypsetdom_addr, sizeof(ypsd.ypsetdom_addr));
 	}

 	strncpy(ypsd.ypsetdom_domain, dom, sizeof ypsd.ypsetdom_domain);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cgd 
State-Changed-When: Mon Jun 26 03:16:06 EDT 1995 
State-Changed-Why:  
fixed a few days ago. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.