diff options
Diffstat (limited to 'passwd/apr_getpass.c')
-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 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 |