not for me :-)
But this line is executed only if "$datum" is defined, so we can avoid the '*'.
Maybe this one is a better fix?

--- /usr/bin/savelog.orig       2006-07-25 20:04:28.000000000 +0200
+++ /usr/bin/savelog    2008-05-07 11:40:34.000000000 +0200
@@ -249,7 +249,7 @@ while [ $# -gt 0 ]; do

        # compress the old uncompressed log if needed
        if test -n "$datum" && test -n "$COMPRESS"; then
-               $COMPRESS -- "$newname".[0-9]*[0-9]
+               $COMPRESS --
"$newname".[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
        fi

        # remove old files if so desired


2008/5/6 Clint Adams <[EMAIL PROTECTED]>:
> On Tue, May 06, 2008 at 01:12:49PM +0200, Marcello Nuccio wrote:
>  > -             $COMPRESS -- "$newname".[0-9]*[0-9]
>  > +             $COMPRESS -- "$newname".*[0-9][0-9]
>
>  Hmm... is it then a problem if that matches mail.log.abc14?
>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to