Date: Tue, 10 Mar 2009 18:09:26 +0100 (CET) From: Janos Mohacsi <janos.mohacsi@bsd.hu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/132513: [MAINTAINER] net-mgmt/nfdump: [fixing DST change error] Message-ID: <200903101709.n2AH9QoB086665@csoki.ki.iif.hu> Resent-Message-ID: <200903101710.n2AHA7n1037801@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132513 >Category: ports >Synopsis: [MAINTAINER] net-mgmt/nfdump: [fixing DST change error] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Mar 10 17:10:07 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Janos Mohacsi >Release: FreeBSD 6.4-STABLE i386 >Organization: NIIF/HUNGARNET >Environment: System: FreeBSD csoki.ki.iif.hu 6.4-STABLE FreeBSD 6.4-STABLE #12: Wed Feb 4 20:24:23 CET >Description: the daylight saving patch for nfdump-1.5.6 was not integrated into 1.5.7. Without this patch the -R/-M options may produce incorrect file lists for files not collected in the same daylight saving periode. Added file(s): - files/patch-util.c Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- nfdump-1.5.7_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/net-mgmt/nfdump.orig/Makefile /usr/ports/net-mgmt/nfdump/Makefile --- /usr/ports/net-mgmt/nfdump.orig/Makefile 2008-08-22 17:18:46.000000000 +0200 +++ /usr/ports/net-mgmt/nfdump/Makefile 2009-03-10 10:17:52.000000000 +0100 @@ -7,6 +7,7 @@ PORTNAME= nfdump PORTVERSION= 1.5.7 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -ruN --exclude=CVS /usr/ports/net-mgmt/nfdump.orig/files/patch-util.c /usr/ports/net-mgmt/nfdump/files/patch-util.c --- /usr/ports/net-mgmt/nfdump.orig/files/patch-util.c 1970-01-01 01:00:00.000000000 +0100 +++ /usr/ports/net-mgmt/nfdump/files/patch-util.c 2009-03-10 17:25:50.000000000 +0100 @@ -0,0 +1,21 @@ + +$FreeBSD$ + +--- util.c.orig ++++ util.c +@@ -301,6 +301,7 @@ + static char timestring[16]; + + when = localtime(&t); ++ when->tm_isdst = -1; + snprintf(timestring, 15, "%i%02i%02i%02i%02i", + when->tm_year + 1900, when->tm_mon + 1, when->tm_mday, when->tm_hour, when->tm_min); + timestring[15] = '\0'; +@@ -320,6 +321,7 @@ + when.tm_sec = 0; + when.tm_wday = 0; + when.tm_yday = 0; ++ when.tm_isdst = -1; + + if ( strlen(timestring) != 12 ) { + LogError( "Wrong time format '%s'\n", timestring); --- nfdump-1.5.7_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903101709.n2AH9QoB086665>