[BACK]Return to patch-src_libutil_util.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mail / rspamd / patches

File: [cvs.NetBSD.org] / pkgsrc / mail / rspamd / patches / Attic / patch-src_libutil_util.c (download)

Revision 1.2, Fri Mar 23 12:08:50 2018 UTC (13 months ago) by fhajny
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1
Changes since 1.1: +4 -4 lines

mail/rspamd: Update to 1.7.1.

- [CritFix] Fix lowercase comparison
- [CritFix] Timezone defines seconds WEST UTC not East
- [Feature] Add filename to log format
- [Feature] Add lua rules squeezing
- [Feature] Add related symbols analysis to rspamd_stats
- [Feature] Remove upstream `X-Spam: Yes` header by default
- [Feature] rspamd_stats: Output progress info on STDERR
- [Feature] Whitelist for emails module
- [Fix] Do not allow dependencies on self
- [Fix] Do not cache metric result
- [Fix] Do not trust all issuers as a client certificate
- [Fix] Fix dependencies in lua squeeze
- [Fix] Fix enabling/disabling squeezed rules
- [Fix] Fix enabling/disabling symbols
- [Fix] Fix external dependencies
- [Fix] Fix processing of a single compressed file
- [Fix] Fix some typos
- [Fix] Fix various modules in case of empty message
- [Fix] Handle callbacks that returns table of options
- [Fix] Improve cached action interaction
- [Fix] Make dynamic conf more NaN aware
- [Fix] Never hide actions from WebUI `configuration` tab
- [Project] Implementation of Lua rules squeezing

$NetBSD: patch-src_libutil_util.c,v 1.2 2018/03/23 12:08:50 fhajny Exp $

Fix SunOS workaround.

--- src/libutil/util.c.orig	2018-03-20 12:26:55.000000000 +0000
+++ src/libutil/util.c
@@ -2766,8 +2766,8 @@ rspamd_gmtime (gint64 ts, struct tm *des
 	dest->tm_sec = remsecs % 60;
 #if !defined(__sun)
 	dest->tm_gmtoff = 0;
-#endif
 	dest->tm_zone = "GMT";
+#endif
 }
 
 #ifdef HAVE_SANE_TZSET
@@ -2787,8 +2787,8 @@ void rspamd_localtime (gint64 ts, struct
 
 	ts -= timezone;
 	rspamd_gmtime (ts, dest);
-	dest->tm_zone = daylight ? (tzname[1] ? tzname[1] : tzname[0]) : tzname[0];
 #if !defined(__sun)
+	dest->tm_zone = daylight ? (tzname[1] ? tzname[1] : tzname[0]) : tzname[0];
 	dest->tm_gmtoff = -timezone;
 #endif
 }