diff options
author | Kenneth G Raeburn <raeburn@mit.edu> | 1988-10-19 19:05:18 +0000 |
---|---|---|
committer | Kenneth G Raeburn <raeburn@mit.edu> | 1988-10-19 19:05:18 +0000 |
commit | b4547694c8742a77ccacde25f026ed94ae923971 (patch) | |
tree | bcb6beb9bfd1eb269e57a0b4f0e19a9feb1cc2b0 /server/subscr.c | |
parent | 361acec6919eff947c76efe0b92c8481f983c3d0 (diff) |
Checked for recipient matching subscriber or empty; changed meaning of
iui restriction; conditionalized char buf[] on KERBEROS.
Diffstat (limited to 'server/subscr.c')
-rw-r--r-- | server/subscr.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/server/subscr.c b/server/subscr.c index 1a509d4..6ac571a 100644 --- a/server/subscr.c +++ b/server/subscr.c @@ -143,6 +143,13 @@ ZNotice_t *notice; subs = subs->q_forw) { /* for each new subscription */ + if (*(subs->zst_recipient) && strcmp(subs->zst_recipient, + notice->z_sender)) { + syslog(LOG_WARNING, "subscr unauth to rcpt %s by %s", + subs->zst_recipient, + notice->z_sender); + continue; + } acl = class_get_acl(subs->zst_class); if (acl) { if (!access_check(notice, acl, SUBSCRIBE)) { @@ -158,15 +165,6 @@ ZNotice_t *notice; subs->zst_class); continue; } - } else if (!strcmp(notice->z_sender, subs->zst_classinst)) { - if (!access_check(notice, acl, INSTUID)) { - syslog(LOG_WARNING, - "subscr unauth uid %s %s.%s", - notice->z_sender, - subs->zst_class, - subs->zst_classinst); - continue; - } } } for (subs2 = who->zct_subs->q_forw; @@ -969,7 +967,10 @@ char *vers; { register int i = 0; register ZSubscr_t *sub; - char buf[512], buf2[512], *lyst[7 * NUM_FIELDS]; +#ifdef KERBEROS + char buf[512]; +#endif /* KERBEROS */ + char buf2[512], *lyst[7 * NUM_FIELDS]; int num = 0; Code_t retval; |