Bug 369

Summary: The stdin (-S) option does not indicate that a newline is required.
Product: Sudo Reporter: Disco Vince Giffin <vgiffin>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.7.0   
Hardware: Macintosh   
OS: MacOS X   

Description Disco Vince Giffin 2009-09-24 15:59:40 MDT
An issue was reported where the following started failing once we upgraded sudo (to 1.7.0):
echo -n password | sudo -S id

The fix here is pretty easy (don't use the "-n" with echo).  Finding the root cause was a little bit trickier.  It would be nice if the manpage mentioned that a newline is required when using the stdin (-S) option.
Comment 1 Todd C. Miller 2009-09-24 20:32:46 MDT
I have added a sentence to that effect to the manual page.