mcm (04/04/83)
When I wrote Mkpath, I put in a little "feature" on purpose. Mkpath ignores blank lines after the "Usenet:" or "UUCP:" fields in Mark Horton's data. If any of you have used the most recent list from Mark without executing it as a shell script first, you'll find sites in the output with names like "cat", "echo", "-", "!Funky!Stuff!", ">ak", and other strange things. Mark put commands in to separate the information after a blank line after the "UUCP:" field. If you don't want to unpack all those files, here is a modification to Mkpath that makes it pay attention to a blank line after the "Usenet:" or "UUCP:" fields. *** mkpath.old.c Wed Feb 23 16:45:34 1983 --- mkpath.c Sun Apr 3 18:02:48 1983 *************** *** 33,38 * Version 3.0 2/12/83 * Version 3.1 2/21/83 added -a option * Version 3.2 2/23/83 made storage for -a,-d options dynamic * * Written by Mike Mitchell decvax!duke!mcnc!ikonas!mcm * --- 33,40 ----- * Version 3.0 2/12/83 * Version 3.1 2/21/83 added -a option * Version 3.2 2/23/83 made storage for -a,-d options dynamic + * Version 3.3 4/3/83 no longer ignores blank lines when looking + * for connections * * Written by Mike Mitchell decvax!duke!mcnc!ikonas!mcm * *************** *** 446,451 else *cp0 = '\0'; } else if (flag) *cp0 = '\0'; pos = ftell(map); cp1 = wrdpos(cp0); } --- 448,455 ----- else *cp0 = '\0'; } else if (flag) *cp0 = '\0'; + if (!flag && *buf == '\n') /* leave if found a blank line */ + return(0); pos = ftell(map); cp1 = wrdpos(cp0); } Mike Mitchell duke!mcnc!ikonas!mcm