apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r454774 - /apr/apr/trunk/passwd/apr_getpass.c
Date Tue, 10 Oct 2006 15:11:40 GMT
Author: jorton
Date: Tue Oct 10 08:11:39 2006
New Revision: 454774

URL: http://svn.apache.org/viewvc?view=rev&rev=454774
Log:
* passwd/apr_getpass.c: Disable getpass() support if PASS_MAX is
defined and "small".

PR: 40256

Modified:
    apr/apr/trunk/passwd/apr_getpass.c

Modified: apr/apr/trunk/passwd/apr_getpass.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/passwd/apr_getpass.c?view=diff&rev=454774&r1=454773&r2=454774
==============================================================================
--- apr/apr/trunk/passwd/apr_getpass.c (original)
+++ apr/apr/trunk/passwd/apr_getpass.c Tue Oct 10 08:11:39 2006
@@ -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



Mime
View raw message