Your message dated Tue, 01 Nov 2005 08:47:16 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#330951: fixed in flow-tools 1:0.68-7
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 30 Sep 2005 15:36:01 +0000
>From [EMAIL PROTECTED] Fri Sep 30 08:36:01 2005
Return-path: <[EMAIL PROTECTED]>
Received: from keeper.3logic.net [195.38.16.16] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1ELMvY-00055Z-00; Fri, 30 Sep 2005 08:36:00 -0700
Received: by keeper.3logic.net (Postfix, from userid 0)
        id 4096F232EFD; Fri, 30 Sep 2005 18:35:55 +0300 (EEST)
Content-Type: multipart/mixed; boundary="===============0138211059022828772=="
MIME-Version: 1.0
From: Oleg Milaenko <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: flow-tools: amd64
X-Mailer: reportbug 3.8
Date: Fri, 30 Sep 2005 18:35:55 +0300
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

This is a multi-part MIME message sent by reportbug.

--===============0138211059022828772==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: flow-tools
Version: 1:0.68-6
Severity: normal
Tags: patch


Incorrect print of capture times in flow-print and flow-report.

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.12
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages flow-tools depends on:
ii  libc6                  2.3.2.ds1-22      GNU C Library: Shared libraries an
ii  libmysqlclient12       4.0.24-10         mysql database client library
ii  libpq4                 8.0.3-15          PostgreSQL C client library
ii  libwrap0               7.6.dbs-8         Wietse Venema's TCP wrappers libra
ii  python                 2.3.5-2           An interactive high-level object-o
ii  zlib1g                 1:1.2.2-4.sarge.2 compression library - runtime

-- no debconf information

--===============0138211059022828772==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="flow-tools.diff"

--- flow-tools-0.68.orig/src/flow-print.c
+++ flow-tools-0.68/src/flow-print.c
@@ -298,6 +298,7 @@
   u_long bpp;
   char fmt_buf1[64], fmt_buf2[64];
   char *rec;
+  time_t time_ftt;
 
   if (ftio_check_xfield(ftio, FT_XFIELD_DPKTS |
     FT_XFIELD_DOCTETS | FT_XFIELD_FIRST | FT_XFIELD_LAST | FT_XFIELD_INPUT |
@@ -351,14 +352,16 @@
       (u_long)*cur.dPkts, (u_long)*cur.dOctets);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.First);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     printf(" %-2.2d%-2.2d.%-2.2d:%-2.2d:%-2.2d.%-3.3lu  ",
       (int)tm->tm_mon+1, (int)tm->tm_mday, (int)tm->tm_hour,
       (int)tm->tm_min, (int)tm->tm_sec, (u_long)ftt.msecs);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.Last);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     active_secs = (*cur.Last - *cur.First) / 1000;
     active_msecs = (*cur.Last - *cur.First) % 1000;
@@ -398,6 +401,7 @@
   u_long active_secs, active_msecs;
   u_long bpp;
   char *rec;
+  time_t time_ftt;
 
   if (ftio_check_xfield(ftio, FT_XFIELD_DPKTS |
     FT_XFIELD_DOCTETS | FT_XFIELD_FIRST | FT_XFIELD_LAST | FT_XFIELD_INPUT |
@@ -465,14 +469,16 @@
       (u_long)*cur.dPkts, (u_long)*cur.dOctets);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.First);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     printf(" %-2.2d%-2.2d.%-2.2d:%-2.2d:%-2.2d.%-3.3lu  ",
       (int)tm->tm_mon+1, (int)tm->tm_mday, (int)tm->tm_hour, (int)tm->tm_min,
       (int)tm->tm_sec, (u_long)ftt.msecs);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.Last);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     active_secs = (*cur.Last - *cur.First) / 1000;
     active_msecs = (*cur.Last - *cur.First) % 1000;
@@ -675,6 +681,7 @@
   struct ftver ftv;
   char fmt_buf1[64], fmt_buf2[64];
   char *rec;
+  time_t time_ftt;
 
   if (ftio_check_xfield(ftio, FT_XFIELD_DPKTS |
     FT_XFIELD_DOCTETS | FT_XFIELD_FIRST | FT_XFIELD_LAST | FT_XFIELD_INPUT |
@@ -711,14 +718,16 @@
     cur.tcp_flags = ((u_int8*)(rec+fo.tcp_flags));
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.First);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     printf("%-2.2d%-2.2d.%-2.2d:%-2.2d:%-2.2d.%-3.3lu ",
       (int)tm->tm_mon+1, (int)tm->tm_mday, (int)tm->tm_hour,
       (int)tm->tm_min, (int)tm->tm_sec, (u_long)ftt.msecs);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.Last);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     printf("%-2.2d%-2.2d.%-2.2d:%-2.2d:%-2.2d.%-3.3lu ",
       (int)tm->tm_mon+1, (int)tm->tm_mday, (int)tm->tm_hour,
@@ -2173,6 +2182,7 @@
   u_long bpp;
   char fmt_buf1[64], fmt_buf2[64], fmt_buf3[64], fmt_buf4[64], fmt_buf5[64], 
fmt_buf6[64];
   char *rec;
+  time_t time_ftt;
 
   if (ftio_check_xfield(ftio, FT_XFIELD_DPKTS |
     FT_XFIELD_DOCTETS | FT_XFIELD_FIRST | FT_XFIELD_LAST | FT_XFIELD_INPUT |
@@ -2239,14 +2249,16 @@
       (u_long)*cur.dPkts, (u_long)*cur.dOctets);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.First);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     printf(" %-4.4d-%-2.2d-%-2.2d %-2.2d:%-2.2d:%-2.2d.%-3.3lu  ",
       (int)tm->tm_year+1900, (int)tm->tm_mon+1, (int)tm->tm_mday, 
(int)tm->tm_hour,
       (int)tm->tm_min, (int)tm->tm_sec, (u_long)ftt.msecs);
 
     ftt = ftltime(*cur.sysUpTime, *cur.unix_secs, *cur.unix_nsecs, *cur.Last);
-    tm = localtime((time_t*)&ftt.secs);
+    time_ftt = ftt.secs;
+    tm = localtime(&time_ftt);
 
     active_secs = (*cur.Last - *cur.First) / 1000;
     active_msecs = (*cur.Last - *cur.First) % 1000;
--- flow-tools-0.68.orig/lib/ftstat.c
+++ flow-tools-0.68/lib/ftstat.c
@@ -12363,7 +12363,7 @@
 {
   int comma, sort_field;
   char *buf, fmt_buf[32];
-  time_t now;
+  time_t now, time_flow;
 
   /* shortcut */
   if (!(rpt->out->options & FT_STAT_OPT_HEADER))
@@ -12619,11 +12619,13 @@
     fprintf(fp, "# records_shown:      %s\n", fmt_buf);
   }
 
+  time_flow = rpt->time_start;
   fprintf(fp, "# first-flow:           %lu %s",
-    (unsigned long)rpt->time_start, ctime((time_t*)&rpt->time_start));
+    (unsigned long)rpt->time_start, ctime(&time_flow));
 
+  time_flow = rpt->time_end;
   fprintf(fp, "# last-flow:            %lu %s",
-    (unsigned long)rpt->time_end, ctime((time_t*)&rpt->time_end));
+    (unsigned long)rpt->time_end, ctime(&time_flow));
 
   now = time((time_t*)0L);
 

--===============0138211059022828772==--

---------------------------------------
Received: (at 330951-close) by bugs.debian.org; 1 Nov 2005 16:47:36 +0000
>From [EMAIL PROTECTED] Tue Nov 01 08:47:35 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1EWzI4-0008De-00; Tue, 01 Nov 2005 08:47:16 -0800
From: Radu Spineanu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#330951: fixed in flow-tools 1:0.68-7
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Tue, 01 Nov 2005 08:47:16 -0800
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: flow-tools
Source-Version: 1:0.68-7

We believe that the bug you reported is fixed in the latest version of
flow-tools, which is due to be installed in the Debian FTP archive:

flow-tools-dev_0.68-7_i386.deb
  to pool/main/f/flow-tools/flow-tools-dev_0.68-7_i386.deb
flow-tools_0.68-7.diff.gz
  to pool/main/f/flow-tools/flow-tools_0.68-7.diff.gz
flow-tools_0.68-7.dsc
  to pool/main/f/flow-tools/flow-tools_0.68-7.dsc
flow-tools_0.68-7_i386.deb
  to pool/main/f/flow-tools/flow-tools_0.68-7_i386.deb
libcflow-perl_0.68-7_i386.deb
  to pool/main/f/flow-tools/libcflow-perl_0.68-7_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Radu Spineanu <[EMAIL PROTECTED]> (supplier of updated flow-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


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

Format: 1.7
Date: Tue,  1 Nov 2005 14:37:54 +0200
Source: flow-tools
Binary: libcflow-perl flow-tools flow-tools-dev
Architecture: source i386
Version: 1:0.68-7
Distribution: unstable
Urgency: low
Maintainer: Radu Spineanu <[EMAIL PROTECTED]>
Changed-By: Radu Spineanu <[EMAIL PROTECTED]>
Description: 
 flow-tools - collects and processes NetFlow data
 flow-tools-dev - development files for flow-tools
 libcflow-perl - perl module for analyzing raw IP flow files written by cflowd
Closes: 330951
Changes: 
 flow-tools (1:0.68-7) unstable; urgency=low
 .
   * And another amd64 fix, incorrect print of capture times in
     flow-print and flow-report. Thanks to  Oleg Milaenko <[EMAIL PROTECTED]>.
     (closes: #330951)
Files: 
 c78629216ad0725ec4b0681d7e0e1fd2 815 net optional flow-tools_0.68-7.dsc
 b7ae7bcbc8971cb9310a7f689438d919 14536 net optional flow-tools_0.68-7.diff.gz
 ccee44d46f9c365015c281a50b398e2c 1159972 net optional 
flow-tools_0.68-7_i386.deb
 541c8dad0519dd6839a5dc36b044da7b 203132 libdevel optional 
flow-tools-dev_0.68-7_i386.deb
 7d0cc230b4a1546572a31923de479e3a 79918 perl optional 
libcflow-perl_0.68-7_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDZ2JPJkMZOMmr+9MRAu2NAJ9qkMAuWrmOyQaw9Mq3/MNNjGH3+ACfa5G1
vj1SXdBrNMoyfbYMLXNhaTg=
=Khf+
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to