diff options
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 |