Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:seife:Factory
libprelude
libprelude-fix_timegm.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libprelude-fix_timegm.patch of Package libprelude
From: Thomas Andrejak <thomas.andrejak@gmail.com> Date: 2017-10-04 07:00:00 +0100 References: http://prelude-siem.org/issues/865 Upstream: submitted Subject: Fix time comparaison --- ./src/idmef-criterion-value.c 2016-12-04 22:36:21.364349964 +0100 +++ ./src/idmef-criterion-value.c 2016-12-04 22:37:40.770573582 +0100 @@ -194,22 +194,22 @@ /* * Apply mask */ - if ( comp.tm_sec < 0 ) lt.tm_sec = -1; + if ( comp.tm_sec < 0 ) comp.tm_sec = lt.tm_sec; else need_full_compare = TRUE; - if ( comp.tm_min < 0 ) lt.tm_min = -1; + if ( comp.tm_min < 0 ) comp.tm_min = lt.tm_min; else need_full_compare = TRUE; - if ( comp.tm_mon < 0 ) lt.tm_mon = -1; + if ( comp.tm_mon < 0 ) comp.tm_mon = lt.tm_mon; else need_full_compare = TRUE; - if ( comp.tm_hour < 0 ) lt.tm_hour = -1; + if ( comp.tm_hour < 0 ) comp.tm_hour = lt.tm_hour; else need_full_compare = TRUE; - if ( comp.tm_mday < 0 ) lt.tm_mday = -1; + if ( comp.tm_mday < 0 ) comp.tm_mday = lt.tm_mday; else need_full_compare = TRUE; - if ( comp.tm_year < 0 ) lt.tm_year = -1; + if ( comp.tm_year < 0 ) comp.tm_year = lt.tm_year; else need_full_compare = TRUE; if ( comp.tm_wday < 0 ) lt.tm_wday = -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