aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-04-14 22:42:44 +0800
committerume <ume@FreeBSD.org>2006-04-14 22:42:44 +0800
commit414dd07e333b4914e38ff4deb5556106e937a453 (patch)
tree815ffe460876d8a409d4e23a9e0ba0a5e198df36 /mail
parentcd0c5941ab568e266a4f34d20530df26baaa599f (diff)
downloadfreebsd-ports-gnome-414dd07e333b4914e38ff4deb5556106e937a453.tar.gz
freebsd-ports-gnome-414dd07e333b4914e38ff4deb5556106e937a453.tar.zst
freebsd-ports-gnome-414dd07e333b4914e38ff4deb5556106e937a453.zip
Fix build with WITH_NNTP=yes.
PR: ports/95690 Obtained from: https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/fetchnews.c.diff?r1=1.14&r2=1.15&f=u
Diffstat (limited to 'mail')
-rw-r--r--mail/cyrus-imapd22/files/patch-imap::fetchnews.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/mail/cyrus-imapd22/files/patch-imap::fetchnews.c b/mail/cyrus-imapd22/files/patch-imap::fetchnews.c
new file mode 100644
index 000000000000..cba683c8faec
--- /dev/null
+++ b/mail/cyrus-imapd22/files/patch-imap::fetchnews.c
@@ -0,0 +1,46 @@
+Index: imap/fetchnews.c
+diff -u -p imap/fetchnews.c.orig imap/fetchnews.c
+--- imap/fetchnews.c.orig Wed Mar 23 09:40:11 2005
++++ imap/fetchnews.c Fri Apr 14 23:36:14 2006
+@@ -38,7 +38,7 @@
+ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+- * $Id: fetchnews.c,v 1.14 2005/03/23 00:40:11 shadow Exp $
++ * $Id: fetchnews.c,v 1.15 2006/04/10 16:19:33 murch Exp $
+ */
+
+ #include <config.h>
+@@ -60,6 +60,7 @@
+ #include "cyrusdb.h"
+ #include "exitcodes.h"
+ #include "global.h"
++#include "gmtoff.h"
+ #include "lock.h"
+ #include "prot.h"
+ #include "xmalloc.h"
+@@ -388,6 +389,7 @@ int main(int argc, char *argv[])
+ &ctime.tm_hour, &ctime.tm_min, &ctime.tm_sec);
+ ctime.tm_year -= 1900;
+ ctime.tm_mon--;
++ ctime.tm_isdst = -1;
+
+ /* read the previous timestamp */
+ if (!sfile[0]) {
+@@ -417,6 +419,7 @@ int main(int argc, char *argv[])
+ /* ask for new articles */
+ if (stamp) stamp -= 180; /* adjust back 3 minutes */
+ ptime = gmtime(&stamp);
++ ptime->tm_isdst = -1;
+ strftime(buf, sizeof(buf), datefmt, ptime);
+ prot_printf(pout, "NEWNEWS %s %s GMT\r\n", wildmat, buf);
+
+@@ -433,7 +436,7 @@ int main(int argc, char *argv[])
+ We can't change this, otherwise we'd be incompatible
+ with an old localtime timestamp.
+ */
+- stamp -= timezone;
++ stamp += gmtoff_of(&ctime, stamp);
+ }
+
+ if (!newnews) {