Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
syslog-ng
syslog-ng-2.0.9-timestamp-parsing.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File syslog-ng-2.0.9-timestamp-parsing.diff of Package syslog-ng
From a1f62daa7a1d00075e40562edc593e5d125bffd7 Mon Sep 17 00:00:00 2001 From: Balazs Scheidler <bazsi@balabit.hu> Date: Wed, 9 Apr 2008 21:30:50 +0200 Subject: [PATCH] made LinkSys timestamp parsing stricter Only take the year value as year if the timestamp is terminated with a space. diff --git a/src/logmsg.c b/src/logmsg.c index 05354b5..0b9bae6 100644 --- a/src/logmsg.c +++ b/src/logmsg.c @@ -296,8 +296,8 @@ log_msg_parse(LogMessage *self, gchar *data, gint length, guint flags, regex_t * self->stamp.time.tv_usec = 0; } - else if (left >= 20 && src[3] == ' ' && src[6] == ' ' && src[9] == ':' && src[12] == ':' && src[15] == ' ' && - isdigit(src[16]) && isdigit(src[17]) && isdigit(src[18]) && isdigit(src[19])) + else if (left >= 21 && src[3] == ' ' && src[6] == ' ' && src[9] == ':' && src[12] == ':' && src[15] == ' ' && + isdigit(src[16]) && isdigit(src[17]) && isdigit(src[18]) && isdigit(src[19]) && isspace(src[20])) { /* LinkSys timestamp, expected format: MMM DD HH:MM:SS YYYY */ -- 1.7.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor