From owner-cvs-all Mon Nov 6 3:17:42 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C0A6F37B4CF; Mon, 6 Nov 2000 03:17:38 -0800 (PST) Received: (from dwmalone@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA65223; Mon, 6 Nov 2000 03:17:38 -0800 (PST) (envelope-from dwmalone@FreeBSD.org) Message-Id: <200011061117.DAA65223@freefall.freebsd.org> From: David Malone Date: Mon, 6 Nov 2000 03:17:38 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/cron/crontab crontab.1 crontab.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dwmalone 2000/11/06 03:17:38 PST Modified files: usr.sbin/cron/crontab crontab.1 crontab.c Log: Attempt to fix problem with users being able to convince the crontab program to read any file which is a valid crontab file. The fix is based on that used in NetBSD and OpenBSD - we keep the file open while the user is editing it. This means that files must be edited in place. Cron attempts to warn you if your editor does not do this. The fact that the file must be edited in place is also noted in the man page. This patch has been confirmed to work by atleast one person on -security and has been tested locally. Obtained from: OpenBSD Revision Changes Path 1.8 +7 -2 src/usr.sbin/cron/crontab/crontab.1 1.14 +13 -9 src/usr.sbin/cron/crontab/crontab.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message