[Syslog-ng-commit] syslog-ng--mainline: use stat instead of seek to determine file size

Balazs Scheidler bazsi at balabit.hu
Fri Apr 6 11:59:21 CEST 2007


-e Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-149>
Revision: syslog-ng--mainline--2.0--patch-149
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Fri Apr  6 11:59:15 CEST 2007
Standard-date: 2007-04-06 09:59:15 GMT
Modified-files: ChangeLog src/logreader.c
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-149
Summary: use stat instead of seek to determine file size
Keywords: 

	* src/logreader.c (log_reader_fd_check): remove lseek based file
	size determination and use lseek instead, it is not glibc that is
	buggy, and although gdb reports invalid contents of the stat
	results, the program sees them correctly

Diff stats:
 ChangeLog       |   17 +++++++++++++++++
 src/logreader.c |   21 ++++++++-------------
 2 files changed, 25 insertions(+), 13 deletions(-)


More information about the Syslog-ng-commit mailing list