From a97888db58967f9edfe9f0f6a81e8f8fa8297535 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 10 Oct 2006 15:11:39 +0000 Subject: * 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 --- passwd/apr_getpass.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'passwd') 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 #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 #endif -- cgit v1.2.1