summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/config.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-08-28 20:13:14 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-08-28 20:13:14 +0000
commita64ff9cc8688cf86f53d1b712ace78f2409ac1e1 (patch)
treefc3ce511a3ca6b22999770e2c063cc4cf4ec70b0 /usr.sbin/cron/config.h
parent4f968160cd2e886d802889206f2166e76d68786d (diff)
Run sendmail as the user corresponding to the crontab entry.
This keeps a user from abusing sendmail via the MAILTO var. Had to drop -or0s from MAILARGS since that causes sendmail to drop its privs (contrary to the sendmail docs).
Diffstat (limited to 'usr.sbin/cron/config.h')
-rw-r--r--usr.sbin/cron/config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/config.h b/usr.sbin/cron/config.h
index d71e5ab5a35..c152bb2e10f 100644
--- a/usr.sbin/cron/config.h
+++ b/usr.sbin/cron/config.h
@@ -17,7 +17,7 @@
/* config.h - configurables for Vixie Cron
*
- * $Id: config.h,v 1.2 1998/03/30 06:59:41 deraadt Exp $
+ * $Id: config.h,v 1.3 1999/08/28 20:13:13 millert Exp $
*/
#if !defined(_PATH_SENDMAIL)
@@ -42,11 +42,12 @@
*/
#define MAILCMD _PATH_SENDMAIL /*-*/
-#define MAILARGS "%s -FCronDaemon -odi -oem -oi -or0s -t" /*-*/
+#define MAILARGS "%s -FCronDaemon -odi -oem -oi -t" /*-*/
/* -Fx = set full-name of sender
* -odi = Option Deliverymode Interactive
* -oem = Option Errors Mailedtosender
* -or0s = Option Readtimeout -- don't time out
+ * XXX - causes sendmail to drop privs.
* -t = read recipient from header of message
*/