See https://salsa.debian.org/ddp-team/release-notes/-/merge_requests/177

> Am 24.05.2023 um 02:30 schrieb Christoph Anton Mitterer 
> <[email protected]>:
> 
> Oh and there's more which IMO can be improved.
> 
> If people take the currently named pattern:
> - /var/log/mail.{info,warn,err,log}*
> - /var/log/lpr.log*
> - /var/log/{messages,debug,daemon}*
> 
> the may accidentally delete quite some other files. e.g. anything that
> starts with debug.
> 
> Also, daemon is actually daemon.log .
> 
> 
> The following would be at least a bit more restrictive:
>  /var/log/mail.{info,warn,err} /var/log/lpr.log 
> /var/log/{messages,debug,daemon.log}
>  /var/log/mail.{info,warn,err}.* /var/log/lpr.log.* 
> /var/log/{messages,debug,daemon.log}.*
> 
> not perfect though, cause it could still select unrelated files 

It only matches compressed files though 

Maybe just drop the “*” and leave it up to the user 

Reply via email to