> Line 272 of savelog is not correct for log files with date extensions not 
> containing exactly 14 digits. I suggest changing it from:
>      $COMPRESS $COMPRESS_OPTS -- 
> "$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]
> to something like:
>     $COMPRESS $COMPRESS_OPTS -- $(ls "$newname".[0-9]* | grep -v $DOT_Z)

To reproduce:

    $ mkdir logs
    $ echo foo > logs/foo.log
    $ savelog -q -d logs/foo.log 
    gzip: 
logs//foo.log.[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]:
 No such file or directory

Subsequent runs do not seem to show this error message:

    $ echo bar > logs/foo.log
    $ savelog -q -d logs/foo.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/368697

Title:
  savelog errors with custom extensions to archived log files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debianutils/+bug/368697/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to