From tejblum@yandex.hq.cti.ru  Mon Feb  3 11:19:59 1997
Received: from yandex.hq.cti.ru (yandex.hq.cti.ru [194.67.85.53])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA14696
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Feb 1997 11:19:56 -0800 (PST)
Received: (from tejblum@localhost)
          by yandex.hq.cti.ru (8.8.4/8.8.4)
	  id TAA01008; Mon, 3 Feb 1997 19:19:56 GMT
Message-Id: <199702031919.TAA01008@yandex.hq.cti.ru>
Date: Mon, 3 Feb 1997 19:19:56 GMT
From: Dmitrij Tejblum <tejblum@yandex.hq.cti.ru>
Reply-To: tejblum@arc.hq.cti.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: Typo in ypserv/yp_server.c
X-Send-Pr-Version: 3.2

>Number:         2645
>Category:       bin
>Synopsis:       Small typo (IMO) in file src/usr.sbin/ypserv/yp_server.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb  3 11:30:02 PST 1997
>Closed-Date:    Wed Feb 5 21:31:31 PST 1997
>Last-Modified:  Wed Feb  5 21:35:02 PST 1997
>Originator:     Dmitrij Tejblum
>Release:        FreeBSD 2.2-BETA_A i386
>Organization:
CompTek International
>Environment:

2.2-BETA sources

>Description:

	See Fix.

>How-To-Repeat:

	See Fix

>Fix:

Here is the patch.
	
*** yp_server.c.orig	Thu Oct 24 18:58:26 1996
--- yp_server.c	Mon Feb  3 13:03:48 1997
***************
*** 397,404 ****
  		sprintf (t, "%u", argp->transid);
  		sprintf (g, "%u", argp->prog);
  		sprintf (p, "%u", argp->port);
! 		if (debug)
  			close(0); close(1); close(2);
  		if (strcmp(yp_dir, _PATH_YP)) {
  			execl(ypxfr_command, "ypxfr",
  			"-d", argp->map_parms.domain,
--- 397,405 ----
  		sprintf (t, "%u", argp->transid);
  		sprintf (g, "%u", argp->prog);
  		sprintf (p, "%u", argp->port);
! 		if (debug) {
  			close(0); close(1); close(2);
+ 		}
  		if (strcmp(yp_dir, _PATH_YP)) {
  			execl(ypxfr_command, "ypxfr",
  			"-d", argp->map_parms.domain,



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wpaul 
State-Changed-When: Wed Feb 5 21:31:31 PST 1997 
State-Changed-Why:  

Fix applied to -current and RELENG_2_2. I think this bug was harmless, 
but it was indeed a mind-o on my part. Thanks for pointing it out. 

-Bill 
>Unformatted:
