Bug 245 - visudo fails on Solaris 10 (both Sparc and x86)
visudo fails on Solaris 10 (both Sparc and x86)
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Visudo
1.6.8
Sun Solaris 2.x
: high high
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-01 20:58 MDT by Drew Schatt
Modified: 2007-07-20 07:28 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.