Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site cepu.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!decvax!ittvax!dcdwest!sdcsvax!bmcg!cepu!scw From: scw@cepu.UUCP Newsgroups: net.bugs.uucp,net.bugs.v7 Subject: Bug in uucico (mis-match system names) UNIX v7, 2.8BSD (others?) Message-ID: <247@cepu.UUCP> Date: Fri, 4-May-84 10:43:42 EDT Article-I.D.: cepu.247 Posted: Fri May 4 10:43:42 1984 Date-Received: Sun, 6-May-84 00:43:59 EDT Organization: VA Wadsworth Med. Center; LA CA Lines: 25 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@ucla-locus location: N 34 06'37" W 118 25'43"