From keramida@diogenis.ceid.upatras.gr  Tue Mar 28 13:23:25 2000
Return-Path: <keramida@diogenis.ceid.upatras.gr>
Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24])
	by hub.freebsd.org (Postfix) with ESMTP id 7F6B737B552
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: keramida@diogenis.ceid.upatras.gr
Reply-To: keramida@ceid.upatras.gr
To: FreeBSD-gnats-submit@freebsd.org
Subject: minor periodic.sh bug
X-Send-Pr-Version: 3.2

>Number:         17651
>Category:       bin
>Synopsis:       minor periodic.sh bug
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 28 13:30:01 PST 2000
>Closed-Date:    Tue Mar 28 23:05:34 PST 2000
>Last-Modified:  Tue Mar 28 23:05:52 PST 2000
>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:
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Tue Mar 28 23:05:34 PST 2000 
State-Changed-Why:  
Patch applied, thanks! 
>Unformatted:
