Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!lee@ROCHESTER.ARPA From: lee@ROCHESTER.ARPA (Lee Moore) Newsgroups: net.unix-wizards Subject: bug in /etc/htable found Message-ID: <8579@brl-tgr.ARPA> Date: Sun, 24-Feb-85 18:42:20 EST Article-I.D.: brl-tgr.8579 Posted: Sun Feb 24 18:42:20 1985 Date-Received: Wed, 27-Feb-85 07:34:20 EST Sender: news@brl-tgr.ARPA Lines: 23 Subject: htable loops infinitely on one letter host names Index: etc/htable 4.2BSD Description: I tried running htable on a host table that I construct which has some one letter host names. This caused htable to loop infinitely and to create potentially infinite "hosts" file. It makes this large host file by repeating the last host name over and over. Repeat-By: Take your favorite hosts.txt and edit a name down to one character. Fix: The fix needs to be applied to "htable/scan.l". Unlike multi-character identifers, the single character identifer is not initialized correctly. The diff is below. 37c37,40 < {ALPHA} return (NAME); --- > {ALPHA} { > yylval.namelist = newname(yytext); > return (NAME); > }