bug-gnulib
[Top][All Lists]
Advanced

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

Re: getpass documentation


From: Simon Josefsson
Subject: Re: getpass documentation
Date: Fri, 16 May 2008 13:52:05 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux)

Simon Josefsson <address@hidden> 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

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