[Bug 831057] New: Logrotate not running scripts with correct parameters in "nosharedscripts" mode
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c0 Summary: Logrotate not running scripts with correct parameters in "nosharedscripts" mode Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36 There is a but in "logrotate" program of versions below 3.8.4: When specifying a pattern to match the rotated files, the pre-/postscripts are supposed to be called with the exact file name of the actual file that is being rotated, not the specified pattern. This is the behavior described in the man page. But actually, this is not the case and the pre-/postrotate scripts are given the pattern as parameter. Example: ------------------- log_files_with_pattern_* { weekly compress dateext rotate 1 notifempty create 644 root root prerotate prerotate_script.sh $1 endscript } ------------------- According to the manpage, logrotate defaults to noscriptmode. Thus, the prerotate script should be run multiple times like this: ------------------- prerotate_script.sh log_files_with_pattern_<CURRENT-FILE-TO-BE-ROTATED-MATCHING-THE-PATTERN> ------------------- but is actually called multiple times like this: ------------------- prerotate_script.sh log_files_with_pattern_<ALL-FILES-MATCHING-REGARDLESS-OF-BEING-ROTATED-OR-NOT> ------------------- This bug makes it impossible for the scripts to run on exactly the file that is being rotated. The BUG was fixed in version 3.8.4 of logrotate. Please see the changelog of version 3.8.4 here: http://svn.fedorahosted.org/svn/logrotate/tags/r3-8-4/CHANGES It states as included fixes: - Call prerotate/postrotate script only for really rotated files in nosharedscripts mode (as stated in man page). Please backport the corresponding changeset to openSUSE 12.x: https://fedorahosted.org/logrotate/changeset/403 This bug also affects all SLES11SPx releases and was reported to Novell as well. Reproducible: Always Steps to Reproduce: 1. Configure pre-/postscript in logrotate with a pattern 2. Run logrotate Actual Results: Pre-/postscripts are called with parameters of all files matching the pattern. Expected Results: Pre-/postscripts should be called with a single parameter of only the actual file that is being rotated. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c1 --- Comment #1 from Joschi Brauchle <joschibrauchle@gmx.de> 2013-07-24 08:52:10 UTC --- replace "noscriptmode" with "nosharedscripts" mode -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |vcizek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c2 Vitezslav Cizek <vcizek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |vcizek@suse.com --- Comment #2 from Vitezslav Cizek <vcizek@suse.com> 2013-07-25 17:40:48 CEST --- (In reply to comment #0)
The BUG was fixed in version 3.8.4 of logrotate. Please see the changelog of version 3.8.4 here: http://svn.fedorahosted.org/svn/logrotate/tags/r3-8-4/CHANGES
It states as included fixes: - Call prerotate/postrotate script only for really rotated files in nosharedscripts mode (as stated in man page).
Please backport the corresponding changeset to openSUSE 12.x: https://fedorahosted.org/logrotate/changeset/403
This commit introduced a regression later fixed in https://fedorahosted.org/logrotate/changeset/433 So I'll include that one as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-07-26 12:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (831057) was mentioned in https://build.opensuse.org/request/show/184407 Maintenance / -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:planned:update -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c6 Vitezslav Cizek <vcizek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Vitezslav Cizek <vcizek@suse.com> 2013-07-29 11:14:40 CEST --- Ok, setting as RESOLVED. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c7 --- Comment #7 from Swamp Workflow Management <swamp@suse.de> 2013-08-05 10:04:21 UTC --- openSUSE-RU-2013:1296-1: An update that has one recommended fix can now be installed. Category: recommended (low) Bug References: 831057 CVE References: Sources used: openSUSE 12.3 (src): logrotate-3.8.1-20.4.1 openSUSE 12.2 (src): logrotate-3.8.1-18.4.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c Leonardo Chiquitto <lchiquitto@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lchiquitto@suse.com Status Whiteboard|maint:planned:update | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c8 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:56465:low --- Comment #8 from Swamp Workflow Management <swamp@suse.de> 2014-02-27 00:51:52 UTC --- The SWAMPID for this issue is 56465. This issue was rated as low. Please submit fixed packages until 2014-03-27. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/56465 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c10 SMASH SMASH <smash_bz@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:56465:low |maint:running:56465:low | |maint:planned:update --- Comment #10 from SMASH SMASH <smash_bz@suse.de> 2014-03-12 21:25:31 UTC --- Affected packages: SLE-11-SP3: SLE-11-SP2: logrotate -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c11 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:56465:low |maint:running:56465:low |maint:planned:update |maint:released:sle11-sp3:56 | |473 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2014-04-01 21:47:29 UTC --- Update released for: logrotate, logrotate-debuginfo, logrotate-debugsource Products: SLE-DEBUGINFO 11-SP3 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11-SP3 (i386, x86_64) SLE-SERVER 11-SP3 (i386, ia64, ppc64, s390x, x86_64) SLES4VMWARE 11-SP3 (i386, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c12 --- Comment #12 from Swamp Workflow Management <swamp@suse.de> 2014-04-02 01:04:24 UTC --- SUSE-RU-2014:0472-1: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 831057,843171 CVE References: Sources used: SUSE Linux Enterprise Server 11 SP3 for VMware (src): logrotate-3.7.7-10.28.1 SUSE Linux Enterprise Server 11 SP3 (src): logrotate-3.7.7-10.28.1 SUSE Linux Enterprise Desktop 11 SP3 (src): logrotate-3.7.7-10.28.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=831057 https://bugzilla.novell.com/show_bug.cgi?id=831057#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:56465:low | |maint:released:sle11-sp3:56 |maint:released:sle11-sp3:56 |473 |473 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com