It not fixed in the latest branch code (http://bazaar.launchpad.net
/~ubuntu-branches/ubuntu/lucid/sysklogd/lucid/files/head:/debian/), but
with the move to rsyslog it doesn't seem to be a problem anymore on
default setups.

Steps to reproduce:

1. Download syslogs-listfiles

Since I upgraded to lucid and it uses rsyslog I downloaded it straight from the 
branch:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/lucid/sysklogd/lucid/download/head%3A/syslogdlistfiles-20090626232137-tixv5m2ox9we304t-56/syslogd-listfiles

2. add this line (written in c-format) to /etc/syslogd.conf:

\t*.*\t\t\t/var/log/everything.log

ex., run as root:
# echo -e "\t*.*\t\t\t/var/log/everything.log" >>/etc/syslog.conf

3. run the script with the weekly argument:

$ /usr/sbin/syslogd-listfiles --weekly

Result:
The command returns *.*, which matches also rotated logs and cause 
uncontrollable growth of rotated logs

Expected result:
Should return only /var/log/everything.log

Additional notes:
I cannot find a way to the the file returned with *.*, there must be some 
facility or priority match. The line is ignored if there is no leading tab, but 
sysklogd ignores leading tabs.

-- 
Bug in syslogd-listfiles causing insane log rotation
https://bugs.launchpad.net/bugs/204498
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to