Subject: lib/3217: setting EDITOR to "pico -t" causes chfn (and others) to fail
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael Graff <explorer@flame.org>
List: netbsd-bugs
Date: 02/13/1997 20:42:59
>Number:         3217
>Category:       lib
>Synopsis:       setting EDITOR to "pico -t" causes chfn (and others) to fail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 13 17:50:02 1997
>Last-Modified:
>Originator:     Michael Graff
>Organization:
flame.org:  yes, we do know everything
>Release:        <NetBSD-current source date>
>Environment:
	
System: NetBSD kechara.flame.org 1.2B NetBSD 1.2B (KECHARA) #1: Fri Dec 6 17:01:45 EST 1996 root@:/usr/src/sys/arch/i386/compile/KECHARA i386


>Description:
Setting EDITOR to any editor string which contains arguments causes
chfn and probably others to fail.

The code in libutil is probably to blame, but I haven't looked at it
yet.


>How-To-Repeat:
root@kechara# setenv EDITOR "emacs -nw"
root@kechara# chfn 
chfn: emacs -nw: No such file or directory
chfn: /etc/master.passwd: unchanged
>Fix:

>Audit-Trail:
>Unformatted: