Bug 17614

Summary: better glob handler
Product: [Retired] Red Hat Linux Reporter: Matt Domsch <matt_domsch>
Component: logrotateAssignee: Erik Troan <ewt>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: johnsonm, mark_rusk, matt_domsch
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-21 17:19:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.