[Top][All Lists]
[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
- getpass documentation, Simon Josefsson, 2008/05/16
- Re: getpass documentation, Bruno Haible, 2008/05/18
- Re: getpass documentation, Simon Josefsson, 2008/05/19
- Re: getpass documentation, Bruno Haible, 2008/05/19
- Re: getpass documentation, Jim Meyering, 2008/05/19
- Re: getpass documentation, Simon Josefsson, 2008/05/19