.ARPA hard coded into sendmail/src/daemon.c

Rick Adams rick at seismo.UUCP
Fri Mar 16 04:26:23 AEST 1984


Re:
	Nothing is hard-coded into sendmail.  It all comes from the .cf file.
	I know they're hard to deal with, but all the flexibility you
	want is there.

Funny, this certainly looks hardcoded to me:
		/* determine host name */
		hp = gethostbyaddr(&otherend.sin_addr, sizeof otherend.sin_addr, AF_INET);
		if (hp != NULL)
--->			(void) sprintf(buf, "%s.ARPA", hp->h_name);
		else
			/* this should produce a dotted quad */
			(void) sprintf(buf, "%lx", otherend.sin_addr.s_addr);
		RealHostName = newstr(buf);

How do you propose I get it to say .UUCP instead of .ARPA?

---rick



More information about the Comp.bugs.4bsd.ucb-fixes mailing list