From nobody@FreeBSD.org  Thu Dec  7 10:56:01 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 51CBB16A415
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Dec 2006 10:56:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C5A7C43CA6
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Dec 2006 10:55:08 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kB7AtxEl046439
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Dec 2006 10:55:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kB7Atx6n046438;
	Thu, 7 Dec 2006 10:55:59 GMT
	(envelope-from nobody)
Message-Id: <200612071055.kB7Atx6n046438@www.freebsd.org>
Date: Thu, 7 Dec 2006 10:55:59 GMT
From: Spil Oss<spil.oss@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: setting HOME crontab (vixie-cron) not functioning
X-Send-Pr-Version: www-3.0

>Number:         106442
>Category:       bin
>Synopsis:       setting HOME crontab (vixie-cron) not functioning
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 07 11:00:28 GMT 2006
>Closed-Date:    Wed Mar 21 15:55:53 GMT 2007
>Last-Modified:  Wed Mar 21 15:55:53 GMT 2007
>Originator:     Spil Oss
>Release:        FreeBSD 6.1-RELEASE-p10
>Organization:
n.a.
>Environment:
FreeBSD spil.somewhere.net 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #3: Mon Oct  2 15:10:32 CEST 2006     root@spil.somewhere.net:/usr/obj/usr/src/sys/BEASTIE61  i386

>Description:
Adding a line like
HOME=/home/user
to a crontab does not change the HOME variable on runtime even though `man 5 crontab` specifies
"HOME, PATH and SHELL may be overridden by settings in the crontab;"

Scheduling `set` results in an email containing
USER=user01
HOME=/home/user01
PS1='$ '
OPTIND=1
PS2='> '
LOGNAME=user01
PPID=80607
PATH=/usr/bin:/bin
SHELL=/bin/sh
IFS=' 	
'

With (a.o.) email-header
X-Cron-Env: <HOME=/home/user01>

Setting e.g. PATH variable in crontab does work
>How-To-Repeat:
Add a line "HOME=string" to crontab
Check environment of crontab
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: will 
State-Changed-When: Thu Mar 8 07:00:53 UTC 2007 
State-Changed-Why:  
Fixed in -CURRENT; will MFC to 6-STABLE in 2 weeks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106442 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/106442: commit references a PR
Date: Thu,  8 Mar 2007 07:00:48 +0000 (UTC)

 will        2007-03-08 07:00:42 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/cron/lib    entry.c 
   Log:
   Fix a bug where HOME was not allowed to be overridden by an user's crontab
   as crontab(5) states it can be.  This is supported by all vixie-cron derived
   implementations; not sure why FreeBSD was any different.
   
   PR:             bin/106442
   MFC after:      2 weeks
   
   Revision  Changes    Path
   1.18      +10 -8     src/usr.sbin/cron/lib/entry.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: will 
State-Changed-When: Wed Mar 21 15:55:03 UTC 2007 
State-Changed-Why:  
Fixed in 6-STABLE as of src/usr.sbin/cron/lib/entry.c:r1.16.2.1. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106442 
>Unformatted:
