[Bug 15111] New: crond appears not to correctly parse step and list entries

bugzilla at busybox.net bugzilla at busybox.net
Wed Nov 9 10:37:25 UTC 2022


https://bugs.busybox.net/show_bug.cgi?id=15111

            Bug ID: 15111
           Summary: crond appears not to correctly parse step and list
                    entries
           Product: Busybox
           Version: 1.35.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: robert at mcqueen.me.uk
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

It appears from inspecting the code that busybox crond intends to find and use
step (ie n/m per https://git.busybox.net/busybox/tree/miscutils/crond.c#n286)
and list (ie x,y,z per
https://git.busybox.net/busybox/tree/miscutils/crond.c#n313) values from
crontab entries, allowing a job to be scheduled at eg several nonconsecutive
hours during the same day. Running crond with -d 5 to expect the filled arrays,
this code appears not to be working correctly.

Crontab entry: 14 2/6 * * *

Debug output:
000000000000001000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111

Expected output:
000000000000001000000000000000000000000000000000000000000000
001000001000001000001000
11111111111111111111111111111111
111111111111
1111111

Crontab entry: 14 2,10,18 * * *

Debug output:
000000000000001000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111

Expected output:
000000000000001000000000000000000000000000000000000000000000
001000000010000000100000
11111111111111111111111111111111
111111111111
1111111

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list