Bug 2

Summary: In case EDITOR envar is empty, wierd error message.
Product: Sudo Reporter: inoue
Component: VisudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: low    
Priority: low    
Version: 1.6.2   
Hardware: PC   
OS: Linux   

Description inoue 2000-07-09 04:24:25 MDT
This is a trivial proposal.
If EDITOR envar is an empty string, wierd error message appears.
Typically, the following case occurs,
# EDITOR= visudo
sh: /etc/sudoers.tmp: Permission denied

I suggest you to do Editor[0] != '\0' check in addition to Editor != NULL check.

Thanks.
Comment 1 Todd C. Miller 2000-07-09 15:08:59 MDT
The EDITOR handling in my current source tree  has been rewritten and has this
fixed.  The next sudo release will not have this problem.