| Summary: | Kcron misinterprets certain crontab comments as jobs | ||
|---|---|---|---|
| Product: | [Applications] kcron | Reporter: | Raul <1000.ontheroad> |
| Component: | general | Assignee: | Gary Meyer <gary> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | p.r.worrall |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/system/kcron/-/commit/9abf45fa8bd27a22739a721641e5b8dd679a9bdc | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Raul
2021-02-09 09:05:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/kcron/-/merge_requests/22 Git commit 9abf45fa8bd27a22739a721641e5b8dd679a9bdc by Albert Astals Cid, on behalf of Cássio Sousa. Committed on 24/12/2023 at 12:17. Pushed by aacid into branch 'master'. Improvements in the handling of crontab comments Improvements in the handling of crontab comments include appending all commented lines above a cron expression and discarding previous ones if there is an enter. Works situations ```sh #- - - * randomtext abc #5 * * * * /home/ubuntu/teste.sh #- - - * randomtext abc 5 * * * * /home/ubuntu/teste.sh #- - - * randomtext abc #5 * * * * /home/ubuntu/teste.sh ``` ```sh #- - - * randomtext abc #5 * * * * /home/ubuntu/teste.sh #- - - * randomtext abc 5 * * * * /home/ubuntu/teste.sh ``` ```sh # another comment #- - - * randomtext abc 5 * * * * /home/ubuntu/teste.sh ``` Before: | header | header | | ------ | ------ | |  |  | After | header | header | | ------ | ------ | |  |  | Another example ```sh #- - - * randomtext abc #5 * * * * /home/ubuntu/teste.sh #- - - * randomtext abc 5 * * * * /home/ubuntu/teste.sh #teste abc #\ * * * /home/ubuntu/kde/src/kcron/Messages.sh #testes comentários 10 * * * * /home/ubuntu/kde/src/kcron/Messages.sh ```  M +15 -24 src/crontablib/ctcron.cpp https://invent.kde.org/system/kcron/-/commit/9abf45fa8bd27a22739a721641e5b8dd679a9bdc |