Bug 245

Summary: visudo fails on Solaris 10 (both Sparc and x86)
Product: Sudo Reporter: Drew Schatt <schatt>
Component: VisudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: high    
Priority: high    
Version: 1.6.8   
Hardware: Sun   
OS: Solaris 2.x   

Description Drew Schatt 2007-05-01 20:58:28 MDT
Using Solaris 10, and Sun's Studio 11 compilers, visudo fails to be happy with the return code from vi (either /usr/bin/vi, or /usr/ucb/vi - both give the exact same results)

Using visudo as follows:

root@db3-Tue 5:55pm-1241: visudo
(edits made in vi - one test case is adding a single blank line)
(save and quit in vi - :w, then :q)
visudo: editor (/usr/ucb/vi) failed, /etc/sudoers unchanged

This happens every time on Solaris 10 (both sparc and x86). I can create accounts on Solaris 10 machines that exhibit this behavior if you would find it helpful.
Comment 1 Todd C. Miller 2007-06-19 12:17:34 MDT
Please try the visudo included in the 1.6.9 beta and see if the problem persists.  See http://www.sudo.ws/sudo/beta.html for a link to the beta version.
Comment 2 Todd C. Miller 2007-07-20 07:28:15 MDT
I believe this is fixed in 1.6.9.  If not, please re-open.