You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by fu...@apache.org on 2011/02/18 13:12:11 UTC
svn commit: r1071974 - /apr/apr/branches/1.5.x/passwd/apr_getpass.c
Author: fuankg
Date: Fri Feb 18 12:12:10 2011
New Revision: 1071974
URL: http://svn.apache.org/viewvc?rev=1071974&view=rev
Log:
Disable getpass() for HP-UX platform (PR49496).
Reported by rajeshkc yahoo.com.
Modified:
apr/apr/branches/1.5.x/passwd/apr_getpass.c
Modified: apr/apr/branches/1.5.x/passwd/apr_getpass.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/passwd/apr_getpass.c?rev=1071974&r1=1071973&r2=1071974&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/passwd/apr_getpass.c (original)
+++ apr/apr/branches/1.5.x/passwd/apr_getpass.c Fri Feb 18 12:12:10 2011
@@ -49,8 +49,12 @@
#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
+ * for an arbitrary definition of "small".
+ * HP-UX truncates passwords (PR49496) so we disable getpass() for
+ * this platform too.
+ */
+#if defined(HAVE_GETPASS) && \
+ (defined(PASS_MAX) && PASS_MAX < 32) || defined(__hpux) || defined(__hpux__)
#undef HAVE_GETPASS
#endif