Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 133677

Summary: dcron: last character of the last crontab command is missing
Product: Gentoo Linux Reporter: Daniel Faber <bugs--gentoo.org>
Component: Current packagesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: minor CC: bugzilla-gentoo, jer, matrixhax0r
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Matt's solution from dcron-3.2

Description Daniel Faber 2006-05-18 04:52:09 UTC
If the last line in a crontab is not terminated by a newline character, the last character of the command in that line will be ignored.

Steps to reproduce:

Append the following line to your crontab and DO NOT terminate this last line with a newline character:

* * * * * echo This is a bug

The mail you will receive has subject "echo This is a bu" and body "This is a bu".

I reported this bug to the author and it is fixed in version 3.2 but the latest version in portage is 2.9.
Comment 1 Daniel Faber 2006-05-18 04:56:41 UTC
Created attachment 86991 [details, diff]
Matt's solution from dcron-3.2

This patch reflects Matt's solution and is applyable to dcron-2.9.  Please add it to the portage tree.
Comment 2 David Li 2006-07-08 14:08:31 UTC
Comment #1: Why isn't dcron updated to 3.2? Should someone file a bug for a revision bump?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2006-10-02 19:39:25 UTC
A version bump of the current ebuild to 3.2 works fine, including all three current patches left unchanged.
Comment 4 SpanKY gentoo-dev 2006-10-04 14:33:56 UTC
3.2 now in portage