Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37846681
en ru br
ALT Linux repos
S:5.2.0-alt1_13
5.0: 0.9.21.2-alt2
3.0: 0.8.10-alt1

Group :: System/Libraries
RPM: libprelude

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libprelude-5.2.0-fix_timegm.patch
Download


--- ./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;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin