Package: logrotate
Version: 3.7.1-5
Severity: wishlist

The argument passed to the script is the name that the log file was renamed 
from, rather than the one it has been renamed to.  This requires that scripts 
are manually kept in sync with the extension, e.g. changing to dateext will 
break scripts looking for some.log.0.

Since the parameter is poorly documented (see bug #423270), I 
would suggest to use a variable instead, e.g. something like

  FILE *fp = fdopen(fd, "w");
  fprintf(fp, "#! /bin/sh\n\nROTATEDLOG=%s\n%s", finalName, script);

where finalName is passed as a third argument to runScript.


-- Package-specific info:
Contents of /etc/logrotate.d
total 100
-rw-r--r-- 1 root root  368 2009-09-22 12:05 apache2
-rw-r--r-- 1 root root  381 2009-09-22 12:03 apache2~
-rw-r--r-- 1 root root   84 2009-02-07 22:18 apt
-rw-r--r-- 1 root root   79 2007-03-14 15:46 aptitude
-rw-r--r-- 1 root root  330 2008-03-07 22:36 atop
-rw-r--r-- 1 root root  215 2008-07-28 22:50 checksecurity
-rw-r--r-- 1 root root  248 2009-01-13 17:09 cups
-rw-r--r-- 1 root root  111 2007-01-02 11:22 dpkg
-rw-r--r-- 1 root root  273 2007-01-20 11:22 exim4-base
-rw-r--r-- 1 root root   94 2006-10-12 10:46 hibernate
-rw-r--r-- 1 root root   77 2008-10-11 02:14 hp-health
-rw-r--r-- 1 root root   77 2008-10-01 00:46 hp-snmp-agents
-rw-r--r-- 1 root root  169 2007-02-11 17:06 mcelog
-rw-r--r-- 1 root root  837 2009-02-03 17:15 mysql-server
-rw-r--r-- 1 root root  153 2007-01-29 16:30 postgresql-common
-rw-r--r-- 1 root root 1061 2008-03-07 22:36 psaccs_atop
-rw-r--r-- 1 root root  512 2008-03-07 22:36 psaccu_atop
-rw-r--r-- 1 root root   88 2008-07-23 03:50 razor
-rw-r--r-- 1 root root   68 2007-02-16 10:22 scrollkeeper
-rw-r--r-- 1 root root  108 2008-07-27 05:34 shorewall
-rw-r--r-- 1 root root  172 2010-02-01 12:49 thermal_sensor
-rw-r--r-- 1 root root  167 2009-09-19 18:21 thermal_sensor~
-rw-r--r-- 1 root root  135 2007-03-18 15:55 ulogd
-rw-r--r-- 1 root root  114 2006-10-02 11:03 unattended-upgrades
-rw-r--r-- 1 root root   80 2006-10-05 02:27 wpa_action


-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (800, 'stable'), (200, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26ale10 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages logrotate depends on:
ii  base-passwd                 3.5.20       Debian base system master password
ii  cron                        3.0pl1-105   management of regular background p
ii  libc6                       2.7-18lenny4 GNU C Library: Shared libraries
ii  libpopt0                    1.14-4       lib for parsing cmdline parameters
ii  libselinux1                 2.0.65-5     SELinux shared libraries

Versions of packages logrotate recommends:
ii  bsd-mailx [mailx]  8.1.2-0.20071201cvs-3 A simple mail user agent
ii  mailx              1:20071201-3          Transitional package for mailx ren

logrotate suggests no packages.

-- no debconf information



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

Reply via email to