Bug 688

Summary: Documentation of -e appears to be wrong (or at least misleading)
Product: Sudo Reporter: Reuben Thomas <rrt>
Component: SudoersAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.8.11   
Hardware: PC   
OS: Linux   

Description Reuben Thomas 2015-03-13 16:31:36 MDT
The sudo man page says: "Note that unlike most commands run by sudo, the editor is run with the invoking user's environment unmodified." However, this is not quite true, at least in some circumstances: on my system PATH is set to the secure_path default setting. Is it just the rest of env_reset that is not performed?
Comment 1 Todd C. Miller 2015-03-17 10:50:53 MDT
When the sudoers policy was split into a seoarate module for sudo 1.8.x the environment handling for sudoedit was changed to be the same as for regular sudo.  I consider this to be a bug in sudoedit rather than a documentation bug.  As such I've just checked in a change to make the behavior match the documentation (and sudo 1.7.x)

http://www.sudo.ws/repos/sudo/rev/a5081c8f6950

The fix will be in the upcoming sudo 1.8.13 release.
Comment 2 Reuben Thomas 2015-03-17 14:40:00 MDT
Thanks very much for the explanation and notification of fix.
Comment 3 Todd C. Miller 2015-03-21 19:15:37 MDT
Fixed in sudo 1.8.13, available now.