Simon Josefsson <[EMAIL PROTECTED]> writes:

>>> Another way of looking at this is that
>>> there is a memory leak in the gnulib 'getpass' module.
>>
>> It's hard to argue this way: getpass() is not specified by a standard.
>
> It is a memory leak regardless of whether it is standardized.

It is defined in XSH5 page 353:

http://www.opengroup.org/bookstore/catalog/c606.htm

It is marked optional though.

I'm not sure it is a good idea to recommend use of getpass, possibly
gnulib could offer a better interface.  It could have a parameter to ask
for confirmation of the password internally.  However, I will use
getpass for now since I don't want to introduce a lot of changes in the
particular code I'm working on.

/Simon


Reply via email to