279 |
|
|
280 |
|
|
281 |
void |
void |
282 |
root_allow_add (const char *arg) |
root_allow_add (const char *arg, const char *configPath) |
283 |
{ |
{ |
284 |
Node *n; |
Node *n; |
285 |
|
|
286 |
if (!root_allow) root_allow = getlist(); |
if (!root_allow) root_allow = getlist(); |
287 |
n = getnode(); |
n = getnode(); |
288 |
n->key = xstrdup (arg); |
n->key = xstrdup (arg); |
289 |
n->data = parse_config (arg); |
n->data = parse_config (arg, configPath); |
290 |
n->delproc = delconfig; |
n->delproc = delconfig; |
291 |
addnode (root_allow, n); |
addnode (root_allow, n); |
292 |
} |
} |
329 |
* The config associated with ARG. |
* The config associated with ARG. |
330 |
*/ |
*/ |
331 |
struct config * |
struct config * |
332 |
get_root_allow_config (const char *arg) |
get_root_allow_config (const char *arg, const char *configPath) |
333 |
{ |
{ |
334 |
Node *n; |
Node *n; |
335 |
|
|
341 |
n = NULL; |
n = NULL; |
342 |
|
|
343 |
if (n) return n->data; |
if (n) return n->data; |
344 |
return parse_config (arg); |
return parse_config (arg, configPath); |
345 |
} |
} |
346 |
|
|
347 |
|
|