Subject: Re: lib/3217: setting EDITOR to "pico -t" causes chfn (and others) to fail
To: None <firstname.lastname@example.org>
From: Jason Thorpe <email@example.com>
Date: 02/13/1997 21:34:17
On Thu, 13 Feb 1997 20:42:59 -0500 (EST)
Michael Graff <firstname.lastname@example.org> wrote:
> 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
>From the revision log of libutil/passwd.c:
date: 1996/12/09 22:23:34; author: thorpej; state: Exp; lines: +44 -7
Deal with complex EDITOR strings (e.g. `pico -t'). Fixes PR #2520.
> root@kechara# setenv EDITOR "emacs -nw"
> root@kechara# chfn
> chfn: emacs -nw: No such file or directory
> chfn: /etc/master.passwd: unchanged
So, I just tried this example...
basalt (thorpej) /sys/arch/powerpc/compile/GENERIC 173% echo $EDITOR
basalt (thorpej) /sys/arch/powerpc/compile/GENERIC 174% chfn
[ editor starts up, I frob the entry, C-x C-c ]
The YP password information has been changed on basalt.OG.ORG, the
master YP passwd server.
So, I'm guessing that your libutil sources are not up to date.
Jason R. Thorpe email@example.com
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939