Date: 28 Mar 2000 16:40:54 -0000 From: keramida@ceid.upatras.gr To: FreeBSD-gnats-submit@freebsd.org Subject: bin/17651: minor periodic.sh bug Message-ID: <20000328164054.1346.qmail@hades.hell.gr>
next in thread | raw e-mail | index | archive | help
>Number: 17651 >Category: bin >Synopsis: minor periodic.sh bug >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 28 13:30:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: the source of periodic.sh cvsup'ed last night (march 27) >Description: Some of the scripts in /etc/periodic use $host, to print the name of the host they're running on. However, when /usr/sbin/periodic runs the scripts it does not `export' host variable >How-To-Repeat: Change your personal account password and run periodic daily, or look at old postings from `periodic daily'. The line above your passwd diffs should be "$host passwd diffs:", but it comes out as " passwd diffs:" because $host is unset. >Fix: --- src/usr.sbin/periodic.sh.orig Sat Aug 28 04:17:52 1999 +++ src/usr.sbin/periodic.sh Tue Mar 28 19:32:45 2000 @@ -52,6 +52,7 @@ fi host=`hostname` +export host echo "Subject: $host $run run output" # Execute each executable file in the directory list. If the x bit is not >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000328164054.1346.qmail>