Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!orchid!gamiddleton From: gamiddleton@orchid.UUCP Newsgroups: comp.unix.wizards Subject: aliases in .rhosts Message-ID: <11488@orchid.waterloo.edu> Date: Mon, 2-Nov-87 14:57:59 EST Article-I.D.: orchid.11488 Posted: Mon Nov 2 14:57:59 1987 Date-Received: Tue, 3-Nov-87 03:08:13 EST Distribution: comp Organization: MFCF Lines: 20 In 4.3bsd, in your .rhosts file, you have to list remote machines by their real name (rather than any aliases). Here is a change to rcmd.c in libc to allow machine aliases. Can anybody think of a reason not to do this? *** /tmp/,RCSt1004886 Mon Nov 2 14:38:09 1987 --- rcmd.c Tue Apr 28 20:00:08 1987 *************** *** 271,276 **** --- 271,281 ---- static char ldomain[MAXHOSTNAMELEN + 1]; static char *domainp = NULL; register char *cp; + register struct hostent *lhostname; + + if ((lhostname = gethostbyname(lhost)) != (struct hostent *) NULL) + lhost = lhostname->h_name; /* use real name, not an alias + */ if (len == -1) return(!strcmp(rhost, lhost));