diff options
author | fuankg <fuankg@13f79535-47bb-0310-9956-ffa450edef68> | 2011-02-18 12:16:34 +0000 |
---|---|---|
committer | fuankg <fuankg@13f79535-47bb-0310-9956-ffa450edef68> | 2011-02-18 12:16:34 +0000 |
commit | 2ea47ac76357e9f33cd9a67a1294de27c8f80dcd (patch) | |
tree | caa2e5a17c116b875f087465ba9d790d912425af /passwd | |
parent | 4f79219a80d9321cdbf8380f7fee8d78cf9a684a (diff) | |
download | libapr-2ea47ac76357e9f33cd9a67a1294de27c8f80dcd.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/branches/0.9.x@1071979 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r-- | passwd/apr_getpass.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c index be32d417e..5b2186a1e 100644 --- a/passwd/apr_getpass.c +++ b/passwd/apr_getpass.c @@ -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 |