size_t len = regerror (err, NULL, ebuf, 256);
self->string = malloc(len + strlen(buf) + 14);
if (!self->string) abort();
- strcpy (self->string, "#ERROR ");
+ strcpy (self->string, "#ERROR: ");
strcat (self->string, ebuf);
strcat (self->string, " in '");
strcat (self->string, buf);
if (!rule)
abort();
- printf("%s\n", rule->string);
+ printf("loaded rule '%s'\n", rule->string);
llist_insert_tail (&self->rules, &rule->node);
}
{
// rulename provided
self->file = (struct rxpd_file*) psplay_find (&self->base->files, &line[i->sz]);
+
if (!self->file)
{
+ // todo create policy?
self->file = rxpd_file_new (self->base, &line[i->sz]);
if (!self->file)
{