Bug 420631 - kcron silent option is broken
Summary: kcron silent option is broken
Alias: None
Product: Fedora
Classification: Fedora
Component: kdeadmin
Version: 8
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2007-12-11 22:08 UTC by Jeff Bastian
Modified: 2008-05-17 22:23 UTC (History)
3 users (show)

Fixed In Version: F8-update
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-05-14 15:18:35 UTC

Attachments (Terms of Use)
upstream patch to remove silent option (tested on RHEL 5.1) (3.93 KB, patch)
2007-12-11 22:08 UTC, Jeff Bastian
no flags Details | Diff

System ID Priority Status Summary Last Updated
KDE Software Compilation 85425 None None None Never

Description Jeff Bastian 2007-12-11 22:08:53 UTC
+++ This bug was initially created as a clone of Bug #420591 +++

Description of problem:
When creating a new cron job with kcron, there's a checkbox to make the job
silent.  If you enable the silent option, kcron fails with a generic error:
  An error occurred while updating crontab.

Launch kcron from a terminal and this error appears when saving the job:
  "/tmp/kde-user/kcrondR2FDb.tmp":2: bad minute
  errors in crontab file, can't install.

The problem is that kcron tries to insert a '-' before the minutes field to make
the job silent (apparently this is an extension for some flavors of cron). 
I.E., the line it creates looks like
  -1 2 3 4 5 /usr/bin/something

This has been reported upstream and the silent option has been removed.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Launch kcron
2. Create a new job and enable the Silent check box
3. Save
Actual results:
An error occurred while updating crontab.

Expected results:
Remove the Silent option from kcron as was done upstream.

Additional info:

-- Additional comment from jbastian@redhat.com on 2007-12-11 17:01 EST --
Created an attachment (id=284691)
upstream patch to remove silent option from kcron

I've tested this patch on RHEL 5.1 and verified it removes the Silent option.

It also removes any offending leading '-' characters from legacy silent jobs.

Comment 1 Jeff Bastian 2007-12-11 22:08:53 UTC
Created attachment 284701 [details]
upstream patch to remove silent option (tested on RHEL 5.1)

Comment 2 Than Ngo 2008-05-14 15:18:35 UTC
it's fixed in kdeadmin-3.5.9-2. thanks

Comment 3 Fedora Update System 2008-05-14 16:20:06 UTC
kdeadmin-3.5.9-2.fc8 has been submitted as an update for Fedora 8

Comment 4 Kevin Kofler 2008-05-14 16:25:16 UTC
This affects F7 too, shouldn't we update that too?

F9+ is not affected, this has been fixed in 4.0.0.

Comment 5 Fedora Update System 2008-05-17 22:23:49 UTC
kdeadmin-3.5.9-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.