Bug 17614 - better glob handler
Summary: better glob handler
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: logrotate
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Erik Troan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-09-18 17:11 UTC by Matt Domsch
Modified: 2008-05-01 15:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-11-21 17:19:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Matt Domsch 2000-09-18 17:11:38 UTC
Logrotate needs to better handle the following case:
/var/log/ttywatch/m1
/var/log/ttywatch/m2
/var/log/ttywatch/m1.1.gz
/var/log/ttywatch/m2.1.gz

Typical logrotate stanza (taken from /etc/logrotate.d/ttywatch):
/var/log/ttywatch/* {
	size=1M
	compress
	nodelaycompress
	missingok
	sharedscripts
	postrotate
		service ttywatch reload
	endscript
}

The * gets globbed, so that m1.1.gz gets re-compressed and re-named 
m1.1.gz.1.gz

Comment 1 Matt Domsch 2000-11-21 17:19:44 UTC
working as designed.  Fix was to add '.log' to end of each name, and glob on 
*.log.


Note You need to log in before you can comment on or make changes to this bug.