Your message dated Wed, 24 Apr 2013 13:47:53 +0000
with message-id <[email protected]>
and subject line Bug#652971: fixed in logrotate 3.8.3-4
has caused the Debian Bug report #652971,
regarding logrotate: Postrotate script launched for empty logs even if 
notifempty option is specified
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.)


-- 
652971: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652971
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: logrotate
Version: 3.7.8-6
Severity: normal

Hi,

It seems that the notifempty option is not taken into account and the 
postrotate script is ran on empty files.

A way to reproduce it:

Consider the /etc/logrotate.d/test:
/root/test/logs/*.log {
        create 0640 root root
        dateext
        daily
        rotate 35
        missingok
        compress
        delaycompress
        notifempty
        postrotate
            echo "arguments: $@"
        endscript
}

# mkdir -p /root/test/logs
# touch /root/test/logs/test1.log
# echo 'hello' > /root/test/logs/test2.log


Rotation:
# logrotate /etc/logrotate.d/test -f                       
arguments:
arguments: /root/test/logs/test2.log-20111222

I didn't find such behaviour on Lenny.

Regards,

Rémi

-- Package-specific info:
Contents of /etc/logrotate.d
total 44
-rw-r--r-- 1 root root  173 Apr 15  2011 apt
-rw-r--r-- 1 root root   79 Aug 11 01:35 aptitude
-rw-r--r-- 1 root root  232 Apr 26  2011 dpkg
-rw-r--r-- 1 root root  146 May 12  2011 exim4-base
-rw-r--r-- 1 root root  126 May 12  2011 exim4-paniclog
-rw-r--r-- 1 root root  120 Oct  5  2010 munin-node
-rw-r--r-- 1 root root  868 Dec 22 11:37 netlogs-syslog-ng
-rw-r--r-- 1 root root  251 Dec 22 11:54 netlogs-syslog-ng-test2
-rw-r--r-- 1 root root  666 Jan 11  2011 ocsinventory-agent
-rw-r--r-- 1 root root  515 Nov 30  2010 rsyslog.disabled
-rw-r--r-- 1 root root 1565 Feb  1  2011 syslog-ng


-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages logrotate depends on:
ii  base-passwd                   3.5.22     Debian base system master password
ii  cron                          3.0pl1-116 process scheduling daemon
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libpopt0                      1.16-1     lib for parsing cmdline parameters
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries

Versions of packages logrotate recommends:
ii  heirloom-mailx [mailx]        12.4-2     feature-rich BSD mail(1)

logrotate suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: logrotate
Source-Version: 3.8.3-4

We believe that the bug you reported is fixed in the latest version of
logrotate, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Paul Martin <[email protected]> (supplier of updated logrotate package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 24 Apr 2013 14:29:30 +0100
Source: logrotate
Binary: logrotate
Architecture: source amd64
Version: 3.8.3-4
Distribution: experimental
Urgency: low
Maintainer: Paul Martin <[email protected]>
Changed-By: Paul Martin <[email protected]>
Description: 
 logrotate  - Log rotation utility
Closes: 652971 694835 706050
Changes: 
 logrotate (3.8.3-4) experimental; urgency=low
 .
   * Accommodate cross-building and "nocheck". (Closes: #694835)
   * Accommodate ext3 filesystem returning wrong error if ACL is disabled.
     (Closes: #706050)
   * Replace patches/acl-tests.patch with the ones from upstream SVN, as
     patches/rh391-acl-test.patch, rh394-acl-tests.patch, rh397-acl-tests.patch
   * Replace patches/configparse.patch with upstream's rh401-tabooextloop.patch
   * Imported from upstream SVN:
     + patch/rh390-version.patch: Add --version option.
     + patch/rh392-skip-errors.patch: Fixed bug which prevented skipping
       particular log file config if the config contains errors
     + patch/rh393-kilo.patch: Allow both 'k' and 'K' in size.
     + patch/rh395-action-error-skip.patch: Fixed skipping of configs
       containing firstaction/lastaction in case of error before these
       directives
     + patch/rh396-changes.patch: update to CHANGES file
     + patch/rh398-preremove.patch: new option "preremove"
     + patch/rh399-leakedfds.patch: Close leaked fds
     + patch/rh400-install.patch: Add INSTALL file
     + patch/rh402-selinux-compress-context.patch: set SELinux context before
       compressLogFile calls to create compressed log files with proper context
     + patch/rh403-prepostrotate.patch: Call prerotate/postrotate script only
       for really rotated files (Closes: #652971)
     - patches/sharedscripts-519432.patch: removed
Checksums-Sha1: 
 f680957106b65fafb3b0cee694f3d0f2cf253ab2 1821 logrotate_3.8.3-4.dsc
 6791f6448fa852cc60912f40da46005bffa387bb 35733 logrotate_3.8.3-4.debian.tar.gz
 0b4c7b769cd6a74fcff03fecb955a2fa89af79e8 54328 logrotate_3.8.3-4_amd64.deb
Checksums-Sha256: 
 0f65bbe7ca4ccc3eb83e8e885c80831cfb6233ae28dc1f8ef9c62613afd5353f 1821 
logrotate_3.8.3-4.dsc
 80b56a7094de6bacf038cf5e36d1e162b2a95d395114022a864d51d4b4b639e7 35733 
logrotate_3.8.3-4.debian.tar.gz
 2b4f239ae77cd4fc7c01f2d6731e31190ab0ac76c3d47a14882ed8db698c5723 54328 
logrotate_3.8.3-4_amd64.deb
Files: 
 2348dbf8242c85c9bd1388f0592fbf05 1821 admin important logrotate_3.8.3-4.dsc
 580a5518306e867a0ded15a4d5938753 35733 admin important 
logrotate_3.8.3-4.debian.tar.gz
 af7380a5347922a4df288d4949216d62 54328 admin important 
logrotate_3.8.3-4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIVAwUBUXfec2A7gyZh+cpTAQiJiRAAqXwhGHyRbP4qhJsm1IeI9sITrrva6cQU
64/66AkS+GG1L9ZYT9ewAmfUQeZKeM/K9GzaHMPEyR+MudySLgwBdEqFfjPTarCC
AmqkR/QU716RVBVXlgeT9abOG+MhrnTyLJysHAp1B+zkVZxgKgOb53HBANZTOcyH
r7IgfGJxMadVmPcsvSTLQwgQEHTKi+/Rg4DBSutHr9QUkx4veXPzUsQHeXjvzryI
bS71qTkPga5Vsfm83G/Xsa4lXsZuJbe+5Zkfs9NEBTfso/Hkp/O2IrOMXjUGI6nb
NoHEp+ilsx3AQmwjoRl6UE0MI6bnjFsqGZilLlCxa++hGSb/aLR+bDgeeML7suhK
XXHK8PmvAcx9Y1hDhzy3sWOBc1AaqNMScXI5P/b8IrPiauInJvWupAGKH6Csrll/
WqvKQpQ+cErdcNowc/MR8vS7WYeOOxiiQZjLBmOqQbWVdNdM/yiXCGz5I4q27Nqb
pRWkjJu/9MJMALl13Z37DHQzYWxxxIeHPaF8Cc6mALUcLG08zz1EnvOPMBJhlwfa
GPnSOZklU8JLQHopJWvi5bAA4flRhEKFO0AzcN6IfqpT+fe2mbnVp1hxrPQ84Q8R
waQwmyJ6yYPERhEP8NJtog24n/hd1o98r+JHqYndoM7uDh/bNV3EX92lakBJSsij
WJXQSYu2FuY=
=kaRo
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to