diff --git a/phoned/config.l b/phoned/config.l index 1664495..5123095 100644 --- a/phoned/config.l +++ b/phoned/config.l @@ -44,7 +44,7 @@ modemdev return MODDEV; \{ return OBRACE; \} return CBRACE; \/[^\n]+\/ yylval.string = strdup(yytext); return REGEX; -\/[a-zA-Z0-9/._-]+ yylval.string = strdup(yytext); return PATH; +[./][a-zA-Z0-9/._-]+ yylval.string = strdup(yytext); return PATH; [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} yylval.string = strdup(yytext); return IPADDR; [a-zA-Z0-9_-]+ yylval.string = strdup(yytext); return FNAME; ; return SCOLON; diff --git a/phoned/phoned.conf b/phoned/phoned.conf index ee49d16..32ba85d 100644 --- a/phoned/phoned.conf +++ b/phoned/phoned.conf @@ -1,7 +1,7 @@ main { modemdev "/dev/cuaa2"; loglevel all; - database "phoned.db"; + database "./phoned.db"; }; filters { filter test1 {