log_info("ignoring service: ",sv," -- already present at tree: ",atree);
/** we don't care about the use of the -t option. The define of the
* info->tree and info->treename is just made to avoid segmentation fault
* at the rest of the process. The service is not parsed or enabled again anyway. */
info->treename.len=0;
if(!auto_stra(&info->treename,atree))
log_die_nomem("stralloc");
set_info(info);
}
/* @sv -> name of the service to parse with
* the path of the frontend file source
* @Die on fail
...
...
@@ -147,10 +135,10 @@ int parse_frontend(char const *sv, resolve_service_t *ares, unsigned int *aresle
if(!force){
already_parsed(svname,atree,info);
log_info("ignoring service: ",svname," -- already present at tree: ",atree);
return2;
}elseif(!info->skip_opt_tree){
}elseif(info->opt_tree){
/* -t option was used */
if(strcmp(info->treename.s,atree))
log_die(LOG_EXIT_SYS,"you can not enable again a service already set on another tree -- current: ",atree," asked: ",info->treename.s,". Try first to disable it");
...
...
@@ -159,26 +147,28 @@ int parse_frontend(char const *sv, resolve_service_t *ares, unsigned int *aresle