apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1071978 - /apr/apr/branches/1.3.x/passwd/apr_getpass.c
Date Fri, 18 Feb 2011 12:15:34 GMT
Author: fuankg
Date: Fri Feb 18 12:15:34 2011
New Revision: 1071978

URL: http://svn.apache.org/viewvc?rev=1071978&view=rev
Log:
Disable getpass() for HP-UX platform (PR49496).

Reported by rajeshkc yahoo.com.

Modified:
    apr/apr/branches/1.3.x/passwd/apr_getpass.c

Modified: apr/apr/branches/1.3.x/passwd/apr_getpass.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/passwd/apr_getpass.c?rev=1071978&r1=1071977&r2=1071978&view=diff
==============================================================================
--- apr/apr/branches/1.3.x/passwd/apr_getpass.c (original)
+++ apr/apr/branches/1.3.x/passwd/apr_getpass.c Fri Feb 18 12:15:34 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
 



Mime
View raw message