ports/132513: [MAINTAINER] net-mgmt/nfdump: [fixing DST change error]
Janos Mohacsi
janos.mohacsi at bsd.hu
Tue Mar 10 17:10:08 UTC 2009
>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:
More information about the freebsd-ports-bugs
mailing list