← Back to team overview

touch-packages team mailing list archive

[Bug 826702] Re: crontab cuts off file names at 100 characters

 

The attachment "vixiecron-pathmax.patch" seems to be a patch.  If it
isn't, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/826702

Title:
  crontab cuts off file names at 100 characters

Status in “cron” package in Ubuntu:
  Fix Committed

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_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_this_will_be_cut_off
  _123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678: No such file or directory

  
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/826702/+subscriptions