[1253] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5b4pl3: appl/bsd/kcmd.c: slightly improve "Connection refused" message

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu Mar 23 14:27:50 1995

From: "Jonathan I. Kamens" <jik@cam.ov.com>
Date: Thu, 23 Mar 1995 14:30:31 -0500
To: krb5-bugs@MIT.EDU

This is a cosmetic change more than anything else, but we like it :-).

--- kcmd.c	1995/03/23 18:31:17	1.8
+++ kcmd.c	1995/03/23 19:29:17
@@ -266,8 +266,12 @@
 	    continue;
     	}
 #endif /* !(defined(ultrix) || defined(sun)) */
-	fprintf(stderr, "%s: %s: %s\n", whoami, hp->h_name,
-		error_message(errno));
+	if (errno == ECONNREFUSED)
+	    fprintf(stderr, "%s: %s not accepting %s connections.\n",
+		    progname, host_save, progname);
+	else
+	    fprintf(stderr, "%s: %s: %s\n", whoami, host_save,
+		    error_message(errno));
 #ifdef POSIX_SIGNALS
 	sigprocmask(SIG_SETMASK, &oldmask, (sigset_t*)0);
 #else

home help back first fref pref prev next nref lref last post