Subject: admin/10957: cron ignores last line of crontab if newline is missing
To: None <gnats-bugs@gnats.netbsd.org>
From: None <eravin@panix.com>
List: netbsd-bugs
Date: 09/05/2000 12:12:20
>Number: 10957
>Category: admin
>Synopsis: cron ignores last line of crontab if newline is missing
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: system-admin
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 05 12:13:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Ed Ravin
>Release: 1.5_ALPHA
>Organization:
Public Access Networks, Inc.
>Environment:
NetBSD trinity.panix.com 1.5_ALPHA NetBSD 1.5_ALPHA (PANIX-STD) #0: Tue Jul 25 17:13:59 EDT 2000 marcotte@trinity.panix.com:/devel/netbsd/current-20000725/src/sys/arch/i386/compile/PANIX-STD i386
>Description:
If the last line of a user's crontab does not end in newline, cron
ignores the entry.
>How-To-Repeat:
use emacs to edit your crontab (EDITOR=emacs crontab -e)
go to end of last line. type control-k several times to
destroy the terminating newline. save file - the last entry
will no longer be executed by cron.
>Fix:
if cron can't be fixed to accept the newline-less line, the "crontab"
command should warn the user about the problem (happens when you use
emacs to edit your crontab via the "crontab -e" command).
>Release-Note:
>Audit-Trail:
>Unformatted: