
		36) System Names which are prefices of others


From: teklabs!cbosg!cbosgd!mark
To: stevenm@tekmdp.uucp
Date: 16-Nov-82 18:04:18-EST (Tue)
Subject: uucp bugs

Another one is that one system might accidently swipe another system's
files if one name is a prefix of the other.  E.g.
	ucbvax spools mail for cbosgd!mark
	cbosg calls ucbvax and asks if ucbvax has anything for cbosg
	ucbvax's uucico finds "D.cbosgdA1234", decides that since
	"D.cbosg" is a prefix of it, that it should go across.
	the mail goes to cbosg!mark
The fix is in anlwrk.c - the exact location depends on the version,
but search for "prefix" and change something along the lines of
	if (prefix(x, y))
to
	if (prefix(x, y) && strlen(y) - strlen(x) == 5)

I believe this bug is still in the uucp running on ucbvax.

	Mark

