diff options
| author | Lucas Castro <lucas@gnuabordo.com.br> | 2024-01-11 15:41:10 -0300 |
|---|---|---|
| committer | Lucas Castro <lucas@gnuabordo.com.br> | 2024-01-11 15:41:10 -0300 |
| commit | d902c1904b05a366628eed6343907b67ea29a64b (patch) | |
| tree | bf5efa9f4a7653c4827697f2f625da4a9fcb14f9 /config.c | |
| parent | 59830f4681f69eda777fc9efcb58f19471ebf136 (diff) | |
New upstream version 1.0.11
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ /* -(C) 2009-2015 Mika Ilmaranta <ilmis@nullnet.fi> +(C) 2009-2019 Mika Ilmaranta <ilmis@nullnet.fi> License: GPLv2 @@ -110,6 +110,7 @@ void free_config(CONFIG **first, CONFIG **last, GROUPS **firstg, GROUPS **lastg) if(curg->eventscript && curg->eventscript != defaults.eventscript) release(&curg->eventscript); if(curg->notifyscript && curg->notifyscript != defaults.notifyscript) release(&curg->notifyscript); if(curg->warn_email && curg->warn_email != defaults.warn_email) release(&curg->warn_email); + if(curg->device && curg->device != defaults.device) release(&curg->device); if(curg->queue && curg->queue != defaults.queue) release(&curg->queue); prevg = curg; @@ -426,6 +427,7 @@ static void read_one_config(char *fn, CONFIG **first, CONFIG **last, GROUPS **fi else if(!eqcmp(buf, "unknown_up_notify")) curg->unknown_up_notify = atoi(strchr(buf, '=') + 1); else if(!eqcmp(buf, "warn_email")) curg->warn_email = strdup(strchr(buf, '=') + 1); else if(!eqcmp(buf, "logic")) curg->logic = atoi(strchr(buf, '=') + 1); + else if(!eqcmp(buf, "device")) curg->device = strdup(strchr(buf, '=') + 1); else if(!eqcmp(buf, "status")) curg->status = atoi(strchr(buf, '=') + 1); else if(!eqcmp(buf, "queue")) curg->queue = strdup(strchr(buf, '=') + 1); else if(!eqcmp(buf, "member-connection")) { @@ -535,6 +537,7 @@ static void read_one_config(char *fn, CONFIG **first, CONFIG **last, GROUPS **fi curg->unknown_up_notify = defaults.unknown_up_notify; curg->warn_email = defaults.warn_email; curg->logic = 0; /* default group logic or */ + curg->device = defaults.device; curg->status = defaults.status; curg->queue = defaults.queue; |
