Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319133 - app-admin/denyhosts: error when trying to logrotate the log file
Summary: app-admin/denyhosts: error when trying to logrotate the log file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 11:06 UTC by Tomáš Linhart
Modified: 2010-06-01 18:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Linhart 2010-05-10 11:06:33 UTC
When I try to logrotate denyhosts's log file, it reports an error when reading the configuration file.



Reproducible: Always

Steps to Reproduce:
1. logrotate -d /etc/logrotate.d/denyhosts


Actual Results:  
reading config file /etc/logrotate.d/denyhosts
reading config info for /var/log/denyhosts
error: /etc/logrotate.d/denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: /etc/logrotate.d/denyhosts:2 unexpected text
error: /etc/logrotate.d/denyhosts:3 unexpected text
error: /etc/logrotate.d/denyhosts:4 unexpected text
error: /etc/logrotate.d/denyhosts:5 unexpected text
error: /etc/logrotate.d/denyhosts:prerotate or postrotate without endscript
removing last 1 log configs


It seems that the problem is caused by CRLF characters in the /etc/logrotate.d/denyhosts file. Replacing them by LF has solved the problem for me.
Comment 1 2010dli 2010-05-21 03:13:32 UTC
I have the same problem, with the same fix of removing carriage returns.

It happens in app-admin/denyhosts-2.6-r2 but not app-admin/denyhosts-2.6-r1.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-06-01 18:07:42 UTC
ah, my bad.

I committed a new file without crlf's