Bug in uucico (mis-match system names) UNIX v7, 2.8BSD (others?)

scw at cepu.UUCP scw at cepu.UUCP
Sat May 5 00:43:42 AEST 1984


There is a bug in conn.c such that if you have 2 systems with similar
names (one name is different from the other by the addition of 1 or
more letters [like: trwrb and trwrba]).  If the longer name is before the
shorter name in L.sys, when looking the system information up in L.sys
finds(sysnam,flds) will *ALWAYS* return the entry for the first
name in the file.

The problem arises because prefix only looks for a prefix, not the full
system name.

the fix:

At about line 496 in conn.c (15th line in finds(sysnam,flds))

replace:
			if (prefix(sysnam, flds[F_NAME]))
				fnd = 1;
with:
			if (!strcmp(sysnam, flds[F_NAME]))
				fnd = 1;

-- 
Stephen C. Woods (VA Wadsworth Med Ctr./UCLA Dept. of Neurology)
uucp:	{ {ihnp4, uiucdcs}!bradley, hao, trwrb, sdcsvax!bmcg}!cepu!scw
ARPA: cepu!scw at ucla-locus       location: N 34 06'37" W 118 25'43"



More information about the Net.bugs.v7 mailing list