From wpaul@ctr.columbia.edu  Thu Jun  1 19:16:47 1995
Received: from sirius.ctr.columbia.edu (root@sirius.ctr.columbia.edu [128.59.64.60])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA23567
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 1 Jun 1995 19:16:44 -0700
Received: from bootserv.ctr.columbia.edu (bootserv.ctr.columbia.edu [128.59.72.36]) by sirius.ctr.columbia.edu (8.6.11/8.6.4.287) with ESMTP id WAA21352 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 1 Jun 1995 22:16:31 -0400
Received: (wpaul@localhost) by bootserv.ctr.columbia.edu (8.6.11/8.6.4.788743) id WAA00800; Thu, 1 Jun 1995 22:16:35 -0400
Message-Id: <199506020216.WAA00800@bootserv.ctr.columbia.edu>
Date: Thu, 1 Jun 1995 22:16:35 -0400
From: wpaul@ctr.columbia.edu
Reply-To: wpaul@ctr.columbia.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: typos in /usr/src/gnu/usr.bin/yppush/yppush.c
X-Send-Pr-Version: 3.2

>Number:         474
>Category:       gnu
>Synopsis:       typos in /usr/src/gnu/usr.bin/yppush/yppush.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun  1 19:20:03 1995
>Closed-Date:    Sun Jul 23 21:28:20 PDT 1995
>Last-Modified:
>Originator:     Bill Paul
>Release:        FreeBSD 2.0-BUILT-19950527 i386
>Organization:
Center for Telecommunications Research, Columbia University
>Environment:

	FreeBSD 2.0.5-ALPHA

>Description:

	There are some embarassing typos (which I made) in yppush.c.
	Some fprintf()s are improperly formatted as a result.

>How-To-Repeat:

	Pay careful attention while reading the yppush.c source.
>Fix:
	
	This is a unified diff to /usr/src/gnu/usr.bin/yppush/yppush.c
	that corrects the typos.


--- yppush.c.orig	Tue May 30 22:19:33 1995
+++ yppush.c	Tue May 30 22:21:50 1995
@@ -203,7 +203,7 @@
 			perror("svc_run: - select failed");
 			return;
 		case 0:
-			fprintf(stderr, "%sh: callback timed out\n, progname");
+			fprintf(stderr, "%s: callback timed out\n", progname);
 			exit(0);
 		default:
 			svc_getreqset(&readfds);
@@ -421,16 +421,16 @@
 
 	if (DomainName==NULL) {
 		if (yp_get_default_domain(&DomainName)!=0) {
-			fprintf(stderr, "%s: cannot get default domain\n,
-								progname");
+			fprintf(stderr, "%s: cannot get default domain\n",
+								progname);
 			exit(1);
 		}
 	}
 
 	ThisHost=getHostName();
 	if (ThisHost==NULL) {
-		fprintf(stderr, "%s: cannot determine local hostname\n,
-								progname");
+		fprintf(stderr, "%s: cannot determine local hostname\n",
+								progname);
 		exit(1);
 	}
 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sun Jul 23 21:28:20 PDT 1995 
State-Changed-Why:  
Suggested fixed was applied in rev 1.6.2.1 of gnu/usr.bin/yppush/yppush.c. 
>Unformatted:



