head 1.4; access; symbols FSL_0_1_12:1.3 FSL_0_1_11:1.3 FSL_0_1_10:1.2 FSL_0_1_9:1.2 FSL_0_1_8:1.2 FSL_0_1_7:1.2 FSL_0_1_6:1.2 FSL_0_1_5:1.2; locks; strict; comment @# @; 1.4 date 2002.08.01.10.18.06; author rse; state dead; branches; next 1.3; 1.3 date 2002.07.29.17.43.44; author rse; state Exp; branches; next 1.2; 1.2 date 2002.07.25.10.14.03; author rse; state Exp; branches; next 1.1; 1.1 date 2002.07.24.07.57.04; author thl; state Exp; branches; next ; desc @@ 1.4 log @cleanups @ text @# # SAMPLE FSL CONFIGURATION FILE # ident (.*)a(.*)/(.*)p q{ debug: prefix(prefix="%b %d %H:%M:%S <%L> $1[%P]: ", timezone=local) -> file(path="sendmail.debug.log", append=0, perm=0644) }; ident mail/.* q{ error: prefix(prefix="%b %d %H:%M:%S <%L> $1[%P]: ", timezone=local) -> file(path="mail.error.log", append=0, perm=0644) }; ident news/.* q{ warning: prefix(prefix="%b %d %H:%M:%S <%L> $1[%P]: ", timezone=local) -> file(path="news.warning.log", append=0, perm=0644) }; @ 1.3 log @octal integers are now possible @ text @@ 1.2 log @Fix a big security hole: the l2_spec() is a varargs function which gets a format string and variable arguments. In case only a fixed string is used we have to use "%s" as the format string or else "%x" in the string is treated like a formatter (and hence cause a segfault or whatever else if it tries to fetch args from the stack). This especially also no longer requires the formatters to be written %%X... @ text @d7 1 a7 1 -> file(path="sendmail.debug.log", append=0, perm=432) d12 1 a12 1 -> file(path="mail.error.log", append=0, perm=432) d17 1 a17 1 -> file(path="news.warning.log", append=0, perm=432) @ 1.1 log @change prefix from l2. to fsl. @ text @d1 3 a3 4 # # SAMPLE FAKESYSLOG CONFIGURATION FILE # d6 3 a8 5 debug: prefix(prefix="%%b %%d %%H:%%M:%%S <%%L> $1 [%%P]: ", timezone=local) -> file(path="sendmail.debug.log", append=0,perm=432) }; d11 3 a13 5 error: prefix(prefix="%%b %%d %%H:%%M:%%S <%%L> $1 [%%P]: ", timezone=local) -> file(path="mail.error.log", append=0,perm=432) }; d16 3 a18 5 warning: prefix(prefix="%%b %%d %%H:%%M:%%S <%%L> $1 [%%P]: ", timezone=local) -> file(path="news.warning.log", append=0,perm=432) }; a19 1 # have a nice day @