Red Hat Bugzilla – Bug 114386
/usr/bin/crontab enters an endless loop on syntax error in crontab
Last modified: 2007-04-18 13:02:14 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040117
Description of problem:
if you try to install the following job with crontab -e
$ crontab -e
(EDITOR pops up)
*/ * * * * command
(save file, quit editor)
Instead of returning to the prompt the /usr/bin/crontab program enters
an endless loop, consuming 100% of the cpu cycles.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. crontab -e
2. */ * * * * any-command
3. save file, quit editor
Actual Results: /usr/bin/crontab entered an endless loop
Expected Results: An error message explaining that there was a syntax
error in the crontab
Created attachment 97368 [details]
Flag "numbers" with 0 characters as errors
The attached patch should fix this border case.
*** This bug has been marked as a duplicate of 89937 ***
Thanks for the patch.
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.