← Back to team overview

touch-packages team mailing list archive

[Bug 118168] Re: Crontab accepts files with no newline before EOL/EOF. Cron ignores file

 

** Also affects: cron (CentOS)
   Importance: Undecided
       Status: New

-- 
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/118168

Title:
  Crontab accepts files with no newline before EOL/EOF. Cron ignores
  file

Status in cron package in Ubuntu:
  Fix Released
Status in cron package in CentOS:
  New

Bug description:
  Binary package hint: cron

  Install a default editor which doesn't automatically enter a newline
  before EOF such as Jed or vi. (nano adds newline).

  Add a user's crontab using crontab -e. Omit newline at end of file.

  Actual behaviour:
  Crontab installs the user's crontab. Crontab does not complain the user's crontab has no new line at end of file.

  Check to see if any of the user's cron tasks run. None run.

  Edit user's crontab again, adding new line at end of crontab.  Check
  to see if any user's cron tasks run. All seem to run OK.

  Expected behaviour:
  Crontab should complain the file it is installing has no new line at end of file, or should install new line silently.

  This behaviour has been verified on irc.freenode.net#ubuntu between
  23:00 and 0:00 BST 31st May 2007. Consensus: Is 100% a bug, should be
  reported.

  Affects: All versions of Vixiecron. All versions of Ubuntu.

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