From owner-cvs-all Sat Jul 1 15:58:19 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 57F1F37B5E8; Sat, 1 Jul 2000 15:58:17 -0700 (PDT) (envelope-from ache@FreeBSD.org) Received: (from ache@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA38683; Sat, 1 Jul 2000 15:58:17 -0700 (PDT) (envelope-from ache@FreeBSD.org) Message-Id: <200007012258.PAA38683@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Sat, 1 Jul 2000 15:58:17 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/cron/cron cron.h do_command.c popen.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ache 2000/07/01 15:58:17 PDT Modified files: usr.sbin/cron/cron cron.h do_command.c popen.c Log: Prevent user from breaking his limits and restrictions or abusing sendmail by any other way via MAILTO tag (since sendmail is running from daemon). Now run sendmail from user, as any other cron user command. Obtained from: Inspired by OpenBSD, but implementation is different Revision Changes Path 1.10 +2 -2 src/usr.sbin/cron/cron/cron.h 1.18 +3 -3 src/usr.sbin/cron/cron/do_command.c 1.9 +59 -2 src/usr.sbin/cron/cron/popen.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message