[Syslog-ng-commit] syslog-ng--mainline: implemented the missing remove_if_older option

Balazs Scheidler bazsi at balabit.hu
Sat Oct 28 18:07:51 CEST 2006


Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-92>
Revision: syslog-ng--mainline--2.0--patch-92
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Sat Oct 28 18:07:36 CEST 2006
Standard-date: 2006-10-28 16:07:36 GMT
Modified-files: ChangeLog src/affile.c src/affile.h
    src/cfg-grammar.y src/cfg-lex.l
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-92
Summary: implemented the missing remove_if_older option
Keywords: 

	* src/affile.c (affile_dw_init): check if the file exists and is
	older than the value for remove_if_older, if it is unlink it,
	(affile_dd_set_remove_if_older): new function to set remove_if_older
	value,

	* src/cfg-grammar.y (dest_affile_option): added KW_REMOVE_IF_OLDER rule

	* src/cfg-lex.l: added keyword for KW_REMOVE_IF_OLDER

Diff stats:
 ChangeLog         |   22 ++++++++++++++++++++++
 src/affile.c      |   19 +++++++++++++++++++
 src/affile.h      |    1 +
 src/cfg-grammar.y |    4 +++-
 src/cfg-lex.l     |    1 +
 5 files changed, 46 insertions(+), 1 deletion(-)


More information about the Syslog-ng-commit mailing list