Simon Josefsson <[EMAIL PROTECTED]> writes: > I noticed that a significant difference between other getpass > implementations and glibc/gnulib's is that the latter allocate the > output buffer.
Sorry, that is false: I just now noticed the 'static' modified in the getpass.c code.... This makes it slightly more difficult to use if you want to confirm the password entered (you'll need to strdup it). Updated documentation patch below. /Simon diff --git a/doc/glibc-functions/getpass.texi b/doc/glibc-functions/getpass.texi index b805cf5..d842283 100644 --- a/doc/glibc-functions/getpass.texi +++ b/doc/glibc-functions/getpass.texi @@ -6,6 +6,9 @@ Gnulib module: --- Portability problems fixed by Gnulib: @itemize [EMAIL PROTECTED] +This implementation returns password of arbitrary length, other +implementations truncate it to PASS_MAX or 8 characters. @end itemize Portability problems not fixed by Gnulib: