>Number: 6251
>Category: system
>Synopsis: syslogd: cannot bind /var/www/dev/log
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Mon Nov 02 10:10:01 GMT 2009
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
System : OpenBSD 4.6
Details : OpenBSD 4.6 (GENERIC) #58: Thu Jul 9 21:24:42 MDT 2009
deraadt@...:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386
Machine : i386
>Description:
If you don't want to run a webserver on your machine and you delete
/var/www you get this error message during boot up:
syslogd: cannot bind /var/www/dev/log: No such file or directory
>How-To-Repeat:
Delete the dirctory /var/www and then boot the machine.
>Fix:
In OpenBSD 4.6 /etc/rc looks like this:
....
if [ X"${httpd_flags}" != X"-u" ]; then
rm -f /var/www/dev/log
syslogd_flags="${syslogd_flags} -a /var/www/dev/log"
fi
....
The check should be changed to something like:
....
if [ X"${httpd_flags}" != X"-u" ] && [ X"${httpd_flags}" != X"NO" ]; then
rm -f /var/www/dev/log
syslogd_flags="${syslogd_flags} -a /var/www/dev/log"
fi
Patch is attached.
[demime 1.01d removed an attachment of type text/x-patch]
>Release-Note:
>Audit-Trail:
>Unformatted: