[net.unix-wizards] A uucp fix

chris.umcp-cs%udel-relay@sri-unix.UUCP (06/09/83)

From:  Chris Torek <chris.umcp-cs@udel-relay>

Bug fix for 4.1BSD UUCP:

This may have been mentioned earlier, but I just fixed it last
night, so I guess it hasn't been seen here.  In anlwrk.c, in the
routine iswrk(), there is a line (around 69 I think) that checks

	if (listp == NULL || *listp == NULL || listp > (list + LLEN)

which is incorrect.  It should check

	if (listp == NULL || listp >= (list + LLEN) || *listp == NULL

Otherwise the call to "prefix" will usually cause uucico to core
dump after processing LLEN (20) C.* files.  (And if you haven't
fixed the abort()/intrEXIT() problem [find intrEXIT in cico.c,
change signal (SIGIOT, SIG_DFL) to signal (SIGILL, SIG_DFL)] you'll
get a 500K core dump.)

				- Chris (seismo!umcp-cs!chris)