Subject: lib/15690: login.conf setenv doesn't allow space, comma, or tab in variable
To: None <gnats-bugs@gnats.netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: netbsd-bugs
Date: 02/21/2002 09:02:43
>Number:         15690
>Category:       lib
>Synopsis:       login.conf setenv doesn't allow space, comma, or tab in variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 21 13:25:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hudson
>Release:        NetBSD 1.5ZA
>Organization:
>Environment:
System: NetBSD btcl045611 1.5ZA NetBSD 1.5ZA (TECRA8100) #4: Mon Feb 18 15:50:19 GMT 2002 nick@btcl045611:/dsk/home/nick/work/netbsd-current/src/sys/arch/i386/compile/TECRA8100 i386
Architecture: i386
Machine: i386
>Description:
	There is no way to get a space, comma or tab into an environment variable
	using login.conf and setenv.
>How-To-Repeat:
	set the following in login.conf (note space after $)

	default:\
		:setenv=PS1=`hostname`$ :

	login and see

	btcl045611$echo

	btcl045611$

>Fix:
	Some form of escape mechanism needs to be added to setuserenv in
	src/lib/libutil/login_cap.c
>Release-Note:
>Audit-Trail:
>Unformatted: