-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
As pointed out by a user, the daylight saving patch for nfdump-1.5.6
was not integrated into 1.5.7. So Users may apply the patch below to
the src tree of 1.5.7 and recompile nfdump. Without this patch the
- -R/-M options may produce incorrect file lists for files not collected
in the same daylight saving periode.

- --- util.c.orig  2008-02-22 10:33:40.000000000 +0100
+++ util.c      2008-02-26 16:11:21.000000000 +0100
@@ -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);



I'm sorry for the trouble.

        - Peter

- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag,  Security Engineer,  Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA  FB 84 CA 94 AB FC 5D D7
SWITCH, Werdstrasse 2, P.O. Box,  CH-8021   Zurich, Switzerland
E-mail: [email protected] Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBSa4rF/5AbZRALNr/AQKbYwP+J1UcfSyzpF24rNNWW2aJaLBHmo6P0yWC
ibP2qOaRNeLaGc/oPi1IY7oV0pW36ImLdQExPgTRemp73pFDLgotK9+sVdZ950lH
4U1SGOh3um0dXmSGk82XDuSoazAqO9xsjhasBC4RwJMqaRO4r9nW6U52zOQUVTI3
+5VN/vMQkuo=
=N9s1
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to