Your message dated Sun, 11 May 2008 22:43:01 +0100
with message-id <[EMAIL PROTECTED]>
and subject line savelog patch
has caused the Debian Bug report #479730,
regarding [PATCH] savelog: tries to compress already compressed files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
479730: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479730
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: debianutils
Version: 2.17
Severity: normal
File: /usr/bin/savelog

I use

  savelog -q -d -j -g adm -m 640 -u root -c 1825 /var/log/mail.log

to rotate log files in /etc/cron.daily/sysklogd.

I get the following errors:

/etc/cron.daily/sysklogd:
bzip2: Input file /var/log//mail.log.20080430070724.bz2 already has .bz2
suffix.
bzip2: Input file /var/log//mail.log.20080501065412.bz2 already has .bz2
suffix.
[...]

This is because .bz2 ends with e digit (2).

The included patch fixes it for me.

thanks,
  Marcello Nuccio


*** savelog-bzip2.patch
--- /usr/bin/savelog.orig       2006-07-25 20:04:28.000000000 +0200
+++ /usr/bin/savelog    2008-05-06 12:54:27.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]
        fi
 
        # remove old files if so desired


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=it_IT, LC_CTYPE=it_IT (charmap=ISO-8859-1)

Versions of packages debianutils depends on:
ii  coreutils              5.97-5.3          The GNU core utilities
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  mktemp                 1.5-2             Makes unique filenames for tempora

debianutils recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 2.17.4

Sorry, this was fixed already.

  * savelog: change glob expression for date-based rotation to
    avoid spurious bziz2 warnings (solution from Martin Schwenke).
    closes: #401143.



--- End Message ---

Reply via email to