From wilko@yedi.iaf.nl Sat Sep 18 11:24:42 1999
Return-Path: <wilko@yedi.iaf.nl>
Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12])
	by hub.freebsd.org (Postfix) with ESMTP id F071914C43
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 18 Sep 1999 11:24:39 -0700 (PDT)
	(envelope-from wilko@yedi.iaf.nl)
Received: from yedi.iaf.nl (uucp@localhost)
	  by uni4nn.gn.iaf.nl (8.9.2/8.9.2) with UUCP id UAA12962
	  for FreeBSD-gnats-submit@freebsd.org; Sat, 18 Sep 1999 20:08:45 +0200 (MET DST)
Received: (from wilko@localhost)
	by yedi.iaf.nl (8.9.3/8.9.3) id UAA56245;
	Sat, 18 Sep 1999 20:02:45 +0200 (CEST)
	(envelope-from wilko)
Message-Id: <199909181802.UAA56245@yedi.iaf.nl>
Date: Sat, 18 Sep 1999 20:02:45 +0200 (CEST)
From: wilko@freebsd.org
Sender: wilko@yedi.iaf.nl
Reply-To: wilko@yedi.iaf.nl
To: FreeBSD-gnats-submit@freebsd.org
Subject: data-sensitivity buglet in 'make release' BUILDNAME
X-Send-Pr-Version: 3.2

>Number:         13807
>Category:       misc
>Synopsis:       data-sensitivity buglet in 'make release' BUILDNAME
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jkh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 18 11:30:01 PDT 1999
>Closed-Date:    Mon Jan 3 20:55:37 PST 2000
>Last-Modified:  Mon Jan  3 20:56:31 PST 2000
>Originator:     Wilko Bulte
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
tcja.nl
>Environment:

	'make release' running on 3.3-REL

>Description:

	The BUILDNAME shell variable that is fed to 'make release'
	is sensitive to the data it is set to. 'Appropriate' data
	makes the 'make release' build fail:

echo "echo make release Finished"       >> /local2/Gen/mk
chmod 755 /local2/Gen/mk
chroot /local2/Gen /mk
+ _RELTARGET=doRELEASE
+ export CFLAGS=-O -pipe
+ export DISTRIBUTIONS=bin manpages catpages games proflibs dict info doc
compat1x compat20 compat21 compat22 krb des
/mk: 6: Syntax error: "(" unexpected
*** Error code 2

>How-To-Repeat:

make release NODOC=YES NOPORTS=YES CHROOTDIR=/local2/Gen BUILDNAME="FreeBSD-3.3-release (wkb; 180999)" RELEASETAG="RELENG_3_3_RELEASE"

The offensive characters are () and most likely ; in the BUILDNAME variable

The resulting /mk file has:

export DISTRIBUTIONS="bin manpages catpages games proflibs dict info doc
compat1x compat20 compat21 compat22 krb des"
export BUILDNAME=FreeBSD-3.3-release (wkb; 180999)
export VNDEVICE=vn0

>Fix:
	
I suppose properly escaping the variable assignments while generating the
/mk file will do the trick. 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Mon Dec 20 08:14:19 PST 1999 
Responsible-Changed-Why:  
Over to Release manager 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Jan 3 20:55:37 PST 2000 
State-Changed-Why:  
I don't think it's really worth the effort to fix this. :) 
>Unformatted:
