summaryrefslogtreecommitdiff
path: root/passwd/apr_getpass.c
diff options
context:
space:
mode:
authorfuankg <fuankg@13f79535-47bb-0310-9956-ffa450edef68>2011-02-15 12:03:04 +0000
committerfuankg <fuankg@13f79535-47bb-0310-9956-ffa450edef68>2011-02-15 12:03:04 +0000
commit5de8e73b1c3c9fef7bb7395ee96403c751ad0194 (patch)
tree2e4a429587535628230c44339163e233573981ea /passwd/apr_getpass.c
parent044d23079511b769412fb94d28ee06ec0154d7c4 (diff)
downloadlibapr-5de8e73b1c3c9fef7bb7395ee96403c751ad0194.tar.gz
Disable getpass() for HP-UX platform (PR49496).
Reported by rajeshkc yahoo.com. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1070855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd/apr_getpass.c')
-rw-r--r--passwd/apr_getpass.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c
index 48aef1c0c..c12826ca2 100644
--- a/passwd/apr_getpass.c
+++ b/passwd/apr_getpass.c
@@ -56,8 +56,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