summaryrefslogtreecommitdiff
path: root/server/dispatch.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1989-05-04 13:36:06 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1989-05-04 13:36:06 +0000
commita07a0e92d3401005ce925552cb7cee31accf804f (patch)
tree7e59b522074a82157f5c213d557895394b44fa92 /server/dispatch.c
parente14e41e6e33a3c21382d79b572dd8ce985f8657a (diff)
add support for subscriptions without defaults
Diffstat (limited to 'server/dispatch.c')
-rw-r--r--server/dispatch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index 3216370..1e86595 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -709,6 +709,7 @@ ZServerDesc_t *server;
ZClient_t *client;
ZHostList_t *host;
Code_t retval;
+ int wantdefs;
/*
* ZEPHYR_CTL Opcodes expected are:
@@ -749,13 +750,15 @@ ZServerDesc_t *server;
if (host && host->zh_locked)
return(ZSRV_REQUEUE);
- if (!strcmp(opcode, CLIENT_SUBSCRIBE)) {
+ wantdefs = strcmp(opcode, CLIENT_SUBSCRIBE_NODEFS);
+ if (!wantdefs || !strcmp(opcode, CLIENT_SUBSCRIBE)) {
/* subscription notice */
if (!(client = client_which_client(who, notice))) {
if ((retval = client_register(notice,
who,
&client,
- server)) != ZERR_NONE)
+ server,
+ wantdefs)) != ZERR_NONE)
{
syslog(LOG_WARNING,
"subscr. register failed: %s",