https://bugs.kde.org/show_bug.cgi?id=432679

            Bug ID: 432679
           Summary: Kcron misinterprets certain crontab comments as jobs
           Product: kcron
           Version: unspecified
          Platform: Gentoo Packages
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: g...@meyer.net
          Reporter: 1000.onther...@gmail.com
  Target Milestone: ---

SUMMARY
Kcron misinterprets some crontab comments as jobs, ignoring the hash character.

STEPS TO REPRODUCE
1. Close Kcron/System Settings if it's already running.
2. Using the command line, edit your user's crontab (crontab -e).
3. Write this comment at the end of the file:
# - - - * randomtext
4. Close the editor, wait for your crontab to be updated and open Kcron.

OBSERVED RESULT
In Kcron, the comment appears as a disabled job, with "- - - *" as scheduling
and "randomtext" as command. It completely ignores the # hash character.

EXPECTED RESULT
As any comment, it should never be shown as a job, but ignored or used as
"description" if it's right above a given job.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo (profile default/linux/amd64/17.1/desktop/plasma
stable, kernel 5.4.92)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Kcron version (as shown in package manager): 20.08.3:5

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to