[142] in Hesiod
Re: Compiling on the Alpha
daemon@ATHENA.MIT.EDU (Gregory Neil Shapiro)
Mon Jun 14 20:02:47 1993
From: Gregory Neil Shapiro <gshapiro@wpi.WPI.EDU>
Date: Mon, 14 Jun 1993 19:57:45 -0400
To: raeburn@cygnus.com (Ken Raeburn)
Cc: hesiod@Athena.MIT.EDU
In-Reply-To: <9306142348.AA07972@tweedledumb.cygnus.com>
>>>>> On Mon, 14 Jun 93 19:48:34 EDT, raeburn@cygnus.com (Ken Raeburn) said:
raeburn> The rest pretty much make sense, but could you please explain what
raeburn> this is for, and why it's Alpha-specific?
raeburn> *** hesiod/hesiod.c Tue Mar 6 12:48:56 1990
raeburn> --- hesiod_alpha/hesiod.c Mon Jun 14 19:19:17 1993
raeburn> ***************
raeburn> *** 98,103 ****
raeburn> --- 98,106 ----
raeburn> else if (strcmp(key, "rhs") == 0) cpp = &Hes_RHS;
raeburn> else continue;
raeburn> while(*cp == ' ' || *cp == '\t' || *cp == '=') cp++;
raeburn> + #ifdef __alpha
raeburn> + if (*cp != '\n') {
raeburn> + #endif
raeburn> if (*cp != '.') {
raeburn> Hes_Errno = HES_ER_CONFIG;
raeburn> fclose(fp);
Before checking *cp for an empty string, hes_init() would always
return HES_ER_CONFIG since *cp was \n, and not '.' as the next if
expects.
It is probably needed on other systems as well. In case you are
interested, here's my /etc/hesiod.conf:
rhs=.WPI.EDU
lhs=