summaryrefslogtreecommitdiff
path: root/passwd
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2011-02-15 12:03:04 +0000
committerGuenter Knauf <fuankg@apache.org>2011-02-15 12:03:04 +0000
commit301dbabf3126503d309931545a225c00905f50b5 (patch)
tree2e4a429587535628230c44339163e233573981ea /passwd
parent5aef447537f65cd3ffb13118baef18a02db4ad16 (diff)
downloadapr-301dbabf3126503d309931545a225c00905f50b5.tar.gz
Disable getpass() for HP-UX platform (PR49496).
Reported by rajeshkc yahoo.com. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1070855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-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