Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 1995 19:20:05 -0700
From:      wpaul@ctr.columbia.edu
To:        freebsd-bugs
Subject:   gnu/474: typos in /usr/src/gnu/usr.bin/yppush/yppush.c
Message-ID:  <199506020220.TAA23770@freefall.cdrom.com>
In-Reply-To: Your message of Thu, 1 Jun 1995 22:16:35 -0400 <199506020216.WAA00800@bootserv.ctr.columbia.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun  1 19:20:03 1995
>Originator:     Bill Paul
>Organization:
Center for Telecommunications Research, Columbia University
>Release:        FreeBSD 2.0-BUILT-19950527 i386
>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);
 	}
 
>Audit-Trail:
>Unformatted:





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506020220.TAA23770>