crontab cuts off file names at 100 characters
Bug #826702 reported by
Aaron Isotton
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cron (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The crontab command silently cuts off file names after 100 characters. This means that it won't work if you have a file with a path longer than 100 characters, and want to feed it into crontab. Example:
$ crontab _123456789_
_123456789_
This is due to a MAX_FNAME constant set to 100 characters in cron.h. I updated the code to use PATH_MAX instead. This will still cut off the paths, but at least after a more reasonable number of characters.
Related branches
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.