summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/config.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-08-28 20:13:13 +0000
committermillert <millert@openbsd.org>1999-08-28 20:13:13 +0000
commit8eda01eceaa0467d558146c68b4ca163c4e90612 (patch)
tree651c346eedfe2a43ad0d9ecd53e6144bf1337e64 /usr.sbin/cron/config.h
parentFix potential buf oflow in log routines. Adapted from am-utils patch. (diff)
downloadwireguard-openbsd-8eda01eceaa0467d558146c68b4ca163c4e90612.tar.xz
wireguard-openbsd-8eda01eceaa0467d558146c68b4ca163c4e90612.zip
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
*/