[3776] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: jik's bug report

daemon@ATHENA.MIT.EDU (marc@MIT.EDU)
Tue Dec 5 04:09:06 1989

From: marc@MIT.EDU
To: zephyr-dev@MIT.EDU
Cc: bugs@MIT.EDU, testers@MIT.EDU
Reply-To: marc@MIT.EDU
Date: Tue, 05 Dec 89 04:08:29 EST
Jik complains that when kinited as jiktest@ATHENA.MIT.EDU, his
subscriptions, although using the string jik@ATHENA.MIT.EDU,
end up being for jiktest@ATHENA.MIT.EDU.  I don't have time to fix it,
but here's the problem:

/afs/athena/astaff/project/zephyr/src/lib/ZSubscriptions.c, line 114-118:

        if (sublist[i].recipient && *sublist[i].recipient &&
            *sublist[i].recipient != '*')
            list[i*3+2] = ZGetSender();
        else
            list[i*3+2] = "";

If the recipient field of the subscription begins with the character
'*', then an instance-global subscription is made.  Otherwise, the
subscription is made with ZGetSender() as the recipient.  I don't think
this is clear in the docs, and if it is, I think it is wrong.  The
string should be check to be completely equal to "*", and if not,
for equality with ZGetSender().  If it is neither, an error should be
returned.

		Marc

home help back first fref pref prev next nref lref last post