[7665] in Athena Bugs
sparc 1.0B: zwgc
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Fri Jun 14 15:50:38 1991
Date: Fri, 14 Jun 91 12:50:07 -0700
From: "Jonathan I. Kamens" <jik@cats.UCSC.EDU>
To: bugs@ATHENA.MIT.EDU
System name: catstest-ws-1.UCSC.EDU
Type and version: sparc 1.0B
Display type: sparc
What were you trying to do?
Run zwgc here at UCSC.
What's wrong:
I got some error messages that won't show up very often,
because of configuration problems here. That's not the
problem. The problem is that the error messages are missing
newlines.
What should have happened:
The patch below.
jik
*** 1.7 1990/05/24 22:42:55
--- subscriptions.c 1991/06/14 19:50:29
***************
*** 227,238 ****
{
struct hostent *hent;
if (gethostname(ourhost,sizeof(ourhost)-1) == -1) {
! ERROR3("unable to retrieve hostname, %s and %s will be wrong in subscriptions.", TOKEN_HOSTNAME, TOKEN_CANONNAME);
return;
}
if (!(hent = gethostbyname(ourhost))) {
! ERROR2("unable to resolve hostname, %s will be wrong in subscriptions.", TOKEN_CANONNAME);
return;
}
(void) strncpy(ourhostcanon,hent->h_name, sizeof(ourhostcanon)-1);
--- 227,238 ----
{
struct hostent *hent;
if (gethostname(ourhost,sizeof(ourhost)-1) == -1) {
! ERROR3("unable to retrieve hostname, %s and %s will be wrong in subscriptions.\n", TOKEN_HOSTNAME, TOKEN_CANONNAME);
return;
}
if (!(hent = gethostbyname(ourhost))) {
! ERROR2("unable to resolve hostname, %s will be wrong in subscriptions.\n", TOKEN_CANONNAME);
return;
}
(void) strncpy(ourhostcanon,hent->h_name, sizeof(ourhostcanon)-1);