bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: su Password Buffer


From: Paul Jarc
Subject: Re: su Password Buffer
Date: Tue, 27 May 2003 11:42:00 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

address@hidden (Bob Proulx) wrote:
> Zach J. Elko wrote:
>> Granted, it executes that command as the user who ran su, I think it
>> would be better to just display an error message and then take the
>> excess bytes and throw them into /dev/null.
>
> The problem is how do you know when to stop reading?

When you see a newline.  If you fill your buffer first, report the
error, read and discard the rest of the current line, and start over
reading the next line.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]