Package: boa
Version: 0.94.14rc21-2
Severity: normal

Two last items of access log should be referer & user-agent,
however this is what I get after update for every request:
        > *.*.*.* - - [02/Nov/2007:22:56:16 +0300] "GET /favicon.ico HTTP/1.1" 
200 894 "(null)" "http://dendik.bpa.nu/";

I looked up log.c:149-150 for the problem. The following patch fixes
the problem for me:

--- log.c       2007-11-02 23:10:59.000000000 +0300
+++ changed-log.c       2007-11-02 23:10:53.000000000 +0300
@@ -151,7 +151,7 @@
            get_commonlog_time(),
            req->logline ? req->logline : "-",
            req->response_status,
-           req->bytes_written,
+           (long)(req->bytes_written),
            (req->header_referer ? req->header_referer : "-"),
            (req->header_user_agent ? req->header_user_agent : "-"));
 }

However, I assume it a hack (it probably won't work on x86_64, or am
I wrong here?) and thus do not send it as a patch. Looks like it should
be related with debian/patches/lfs_support.diff

The reason I attempted this solution was compilation warning on type
mismatch, and there are a few more alike warnings that may or may not
cause errors: at least, I've not bumped into any other unexpected
behaviour.

This may also be related:
ii  gcc                           4:4.2.1-6  The GNU C compiler

Cheers,
Danya.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/bash

Versions of packages boa depends on:
ii  debconf [debconf-2.0]         1.5.14     Debian configuration management sy
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
ii  logrotate                     3.7.1-3    Log rotation utility
ii  mime-support                  3.39-1     MIME files 'mime.types' & 'mailcap

boa recommends no packages.

-- debconf information excluded



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

Reply via email to