Bug 28500 - Error in apache2splitlogfile
Summary: Error in apache2splitlogfile
Status: CLOSED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Other Modules (show other bugs)
Version: 2.0.49
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-20 14:25 UTC by Ryan Schmidt
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Schmidt 2004-04-20 14:25:49 UTC
Hello. Line 109 of apache2splitlogfile has an error. Lines 108 and 109 are as follows:

    open LOGFILE, ">>$filename"
            or die ("Can't open $logs/$filename");

Line 109 should just say "Can't open $filename"; it should not include "$logs" in the string. This is 
because of line 104, which reads:

    $filename="$logs/VLOG-$date-${vhost}.log";

See? $logs is already part of $filename.

As a result, my error log has paths in it which are confusing, because the directory part is printed twice. 
This perhaps leads me to incorrect conclusions about the source of my misconfiguration.
Comment 1 André Malo 2004-04-20 18:59:40 UTC
This bug is Gentoo specific. There's no such code in the vanilla distribution.

Thanks for using Apache.
Comment 2 Ryan Schmidt 2004-04-24 15:55:21 UTC
Thanks for pointing me in the right direction. I've reported the bug to the Gentoo team, which tells me 
they've now fixed it:

http://bugs.gentoo.org/show_bug.cgi?id=48499