[syslog-ng] syntax error
Balazs Scheidler
bazsi at balabit.hu
Sun Jan 7 17:53:27 CET 2007
On Fri, 2007-01-05 at 20:03 +0100, Jacek Kalinski wrote:
> Hi,
>
> you have an error because syslog-ng 2.0.0 and 2.0.1 can't convert
> user/group name to user/group ID.
> But when you specify, eg.
> group(10) it will start correctly (if GID 10 = tty).
>
> I wrote about this between 2006-11-26 and 2006-11-28 in thread: "Config
> parse error in syslog-ng 2.0.0". It still hasn't been fixed.
I fixed this problem already, only my fix was not complete.
If you enclose the group in quotes (e.g. "tty") it'd work.
The patch below fixes this minor issue as well:
--- orig/src/cfg-grammar.y
+++ mod/src/cfg-grammar.y
@@ -884,7 +884,7 @@ string
;
string_or_number
- : STRING { $$ = $1; }
+ : string { $$ = $1; }
| NUMBER { char buf[16]; snprintf(buf, sizeof(buf), "%d", $1); $$ = strdup(buf); }
%%
--
Bazsi
More information about the syslog-ng
mailing list