head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.22 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.20 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.18 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.16 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.14 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.12 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.10 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.8 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.6 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.4 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.2 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.1.0.6 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.4 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.2 pkgsrc-2007Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2007.11.21.20.29.47; author gdt; state dead; branches; next 1.1; 1.1 date 2007.03.07.17.33.51; author gdt; state Exp; branches; next ; desc @@ 1.2 log @Update to 4.0. Removed patches were merged upstream. From the changelog, this seems to be many bugfixes and better RBL support. @ text @$NetBSD: patch-ac,v 1.1 2007/03/07 17:33:51 gdt Exp $ --- pending.c.orig 2006-09-04 18:05:59.000000000 -0400 +++ pending.c @@@@ -403,6 +403,7 @@@@ pending_textdump(stream) int done = 0; char textdate[DATELEN + 1]; struct tm tm; + time_t ti; fprintf(stream, "\n\n#\n# greylisted tuples\n#\n"); fprintf(stream, "# Sender IP\t%s\t%s\tTime accepted\n", @@@@ -416,7 +417,8 @@@@ pending_textdump(stream) pending->p_addr, pending->p_from, pending->p_rcpt, (long)pending->p_tv.tv_sec); } else { - localtime_r((time_t *)&pending->p_tv.tv_sec, &tm); + ti = pending->p_tv.tv_sec; + localtime_r(&ti, &tm); strftime(textdate, DATELEN, "%Y-%m-%d %T", &tm); fprintf(stream, "%s\t%s\t%s\t%ld # %s\n", @ 1.1 log @Don't assume time_t and long are the same (on sparc64, they aren't). Fixes ascii timestamps in greylist.db, but as this is solely for the benefit of humans looking at the file functionality is unchanged. @ text @d1 1 a1 1 $NetBSD$ @