Bug 369 - The stdin (-S) option does not indicate that a newline is required.
The stdin (-S) option does not indicate that a newline is required.
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.0
Macintosh MacOS X
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-24 15:59 MDT by Disco Vince Giffin
Modified: 2009-09-24 20:32 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 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.