Bug 495333

Summary: ungrammatical syslog message
Product: [Fedora] Fedora Reporter: Jonathan Kamens <jik>
Component: anacronAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: mmaslano
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-14 14:36:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2009-04-12 04:37:19 UTC
anacron sometimes logs "Normal exit (0 job run)".  It should say "jobs", not "job".

Comment 1 Marcela Mašláňová 2009-04-14 06:31:06 UTC
Do you have anacron-2.3-73.fc11.x86_64? In this final version it should be working correctly.

Comment 2 Jonathan Kamens 2009-04-14 13:39:17 UTC
Yes, I have the current version.  No, it does not solve the problem.  The problem is quite obvious:

    explain("Normal exit (%d job%s run)", njobs-dropped_jobs, (njobs == 1 ? "" : "s"));

It should say:

    explain("Normal exit (%d job%s run)", njobs-dropped_jobs, ((njobs-dropped_jobs) == 1 ? "" : "s"));

Comment 3 Marcela Mašláňová 2009-04-14 14:36:47 UTC
Thanks