From owner-freebsd-bugs Tue Mar 28 13:30: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 215A937BD96 for ; Tue, 28 Mar 2000 13:30:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA69038; Tue, 28 Mar 2000 13:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24]) by hub.freebsd.org (Postfix) with ESMTP id 7F6B737B552 for ; Tue, 28 Mar 2000 13:23:18 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat12.x-treme.gr [212.120.197.204]) by mail2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with SMTP id AAA25201 for ; Wed, 29 Mar 2000 00:23:10 +0300 Received: (qmail 1347 invoked by uid 1001); 28 Mar 2000 16:40:54 -0000 Message-Id: <20000328164054.1346.qmail@hades.hell.gr> Date: 28 Mar 2000 16:40:54 -0000 From: keramida@ceid.upatras.gr Reply-To: keramida@ceid.upatras.gr To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/17651: minor periodic.sh bug Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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