Package: dsniff
Version: 2.4b1-9
Severity: minor
Tags: patch

urlsnarf uses strftime with %e in the date output function, instead of %d,
which forces leading zeroes.  Leading zeroes are more consistent with other
CLF-style log files.  With the patch, urlsnarf output is easier to load into
a varietey of web log analysis packages.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages dsniff depends on:
ii  libc6                2.3.2.ds1-20        GNU C Library: Shared libraries an
ii  libdb4.2             4.2.52-18           Berkeley v4.2 Database Libraries [
ii  libice6              4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii  libnet0              1.0.2a-7            library for the construction and h
ii  libnids1             1.20-1              IP defragmentation TCP segment rea
ii  libpcap0.8           0.8.3-5             System interface for user-level pa
ii  libsm6               4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii  libssl0.9.7          0.9.7e-3            SSL shared libraries
ii  libx11-6             4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii  libxmu6              4.3.0.dfsg.1-12.0.1 X Window System miscellaneous util
ii  openssl              0.9.7e-3            Secure Socket Layer (SSL) binary a
ii  xlibs                4.3.0.dfsg.1-12     X Keyboard Extension (XKB) configu

-- no debconf information
--- ../orig/dsniff-2.4b1/urlsnarf.c     2001-03-15 04:26:13.000000000 -0500
+++ urlsnarf.c  2005-03-08 14:44:08.161532861 -0500
@@ -68,7 +68,7 @@
                 t->tm_hour - gmt.tm_hour);
        tz = hours * 60 + t->tm_min - gmt.tm_min;
        
-       len = strftime(tstr, sizeof(tstr), "%e/%b/%Y:%X", t);
+       len = strftime(tstr, sizeof(tstr), "%d/%b/%Y:%X", t);
        if (len < 0 || len > sizeof(tstr) - 5)
                return (NULL);
        

Reply via email to