diff options
author | Joe Orton <jorton@apache.org> | 2006-10-10 15:11:39 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2006-10-10 15:11:39 +0000 |
commit | a97888db58967f9edfe9f0f6a81e8f8fa8297535 (patch) | |
tree | ac07d76ddb73040428064f9af5b31e7940aa8f0d /passwd | |
parent | 095df2e602c5a361d42bcb1d4e4b03108c303422 (diff) | |
download | apr-a97888db58967f9edfe9f0f6a81e8f8fa8297535.tar.gz |
* passwd/apr_getpass.c: Disable getpass() support if PASS_MAX is
defined and "small".
PR: 40256
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@454774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r-- | passwd/apr_getpass.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c index 7e8977494..4d6167e8a 100644 --- a/passwd/apr_getpass.c +++ b/passwd/apr_getpass.c @@ -48,6 +48,12 @@ #include <strings.h> #endif +/* Disable getpass() support when PASS_MAX is defined and is "small", + * for an arbitrary definition of "small". */ +#if defined(HAVE_GETPASS) && defined(PASS_MAX) && PASS_MAX < 32 +#undef HAVE_GETPASS +#endif + #if defined(HAVE_TERMIOS_H) && !defined(HAVE_GETPASS) #include <termios.h> #endif |