From owner-cvs-all Tue Nov 27 9:23:49 2001 Delivered-To: cvs-all@freebsd.org Received: from silby.com (cb34181-a.mdsn1.wi.home.com [24.14.173.39]) by hub.freebsd.org (Postfix) with ESMTP id 42CB837B419 for ; Tue, 27 Nov 2001 09:23:38 -0800 (PST) Received: (qmail 39348 invoked by uid 1000); 27 Nov 2001 17:23:36 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 Nov 2001 17:23:36 -0000 Date: Tue, 27 Nov 2001 11:23:36 -0600 (CST) From: Mike Silbersack To: Brian Somers Cc: Robert Watson , Gregory Neil Shapiro , , Subject: Re: cvs commit: src/etc security In-Reply-To: <200111271617.fARGHP300987@hak.lan.Awfulhak.org> Message-ID: <20011127112119.K39142-100000@achilles.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ok, I decided to look most at how the daily run handles its output and emulate that approach. This now fixes the To: header, but I've managed to break the hostname expansion in the Subject. Can anyone point me as to what's wrong in the patches below? Thanks, Mike "Silby" Silbersack --- /usr/src/etc/security Tue Nov 27 11:08:21 2001 +++ /etc/security Tue Nov 27 11:13:35 2001 @@ -58,8 +58,6 @@ yesterday=`date -v-1d "+%b %e "` host=`hostname` -[ $sflag = FALSE ] && echo "To: root@${host}" -[ $sflag = FALSE ] && echo "Subject: ${host} security check output" umask 027 --- /usr/src/etc/periodic/daily/450.status-security Wed Jun 6 14:24:44 2001 +++ /etc/periodic/daily/450.status-security Tue Nov 27 11:21:52 2001 @@ -36,8 +36,10 @@ >$daily_status_security_output 2>&1;; *) echo " (output mailed separately)" + host=`hostname` + export host sh /etc/security $args 2>&1 | - sendmail $daily_status_security_output;; + mail -s '$host security check output' $daily_status_security_output;; esac;; esac;; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message