Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133677 - dcron: last character of the last crontab command is missing
Summary: dcron: last character of the last crontab command is missing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 04:52 UTC by Daniel Faber
Modified: 2006-10-04 14:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Matt's solution from dcron-3.2 (dcron-2.9-newlinefix.patch,598 bytes, patch)
2006-05-18 04:56 UTC, Daniel Faber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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