[Bug 567497] New: logrotate returns 0 although olddir does not exist
http://bugzilla.novell.com/show_bug.cgi?id=567497 http://bugzilla.novell.com/show_bug.cgi?id=567497#c0 Summary: logrotate returns 0 although olddir does not exist Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: i586 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Robert.Dahlem@gmx.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729) When using "olddir XXX" and failing to create the corresponding directory, /usr/sbin/logrotate reports: error: FILE:LINE error verifying olddir path /YYY/XXX: No such file or directory but returns 0. This is problematic because /etc/cron.daily/logrotate exits silently and nothing gets rotated without the administrator seeing anything. Reproducible: Always Steps to Reproduce: 1. # /usr/sbin/logrotate /etc/logrotate.conf 2. check $?, should be 0 3. add "olddir DOESNOTEXIST" to /etc/logrotate.conf 4. # /usr/sbin/logrotate /etc/logrotate.conf 5. watch the output, should tell that directory does not exist 6. check $?, it is still 0 Expected Results: $? should be != 0 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c1
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c2
Robert Dahlem
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c3
--- Comment #3 from Robert Dahlem
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c4
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c5
Robert Dahlem
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c6
Petr Uzel
logrotate-3.7.5-48.1
Hmm, same release as I have used. Could you please run logrotate with '-v' option and post the output (and verify it still returns 0)? Thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c7
Robert Dahlem
http://bugzilla.novell.com/show_bug.cgi?id=567497
http://bugzilla.novell.com/show_bug.cgi?id=567497#c8
Petr Uzel
participants (1)
-
bugzilla_noreply@novell.com