From commits-return-11766-apmail-apr-commits-archive=apr.apache.org@apr.apache.org Fri Feb 18 12:12:35 2011 Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 67018 invoked from network); 18 Feb 2011 12:12:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2011 12:12:34 -0000 Received: (qmail 97092 invoked by uid 500); 18 Feb 2011 12:12:34 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 96980 invoked by uid 500); 18 Feb 2011 12:12:32 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 96972 invoked by uid 99); 18 Feb 2011 12:12:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 12:12:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 12:12:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4F7C0238890B; Fri, 18 Feb 2011 12:12:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1071974 - /apr/apr/branches/1.5.x/passwd/apr_getpass.c Date: Fri, 18 Feb 2011 12:12:11 -0000 To: commits@apr.apache.org From: fuankg@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110218121211.4F7C0238890B@eris.apache.org> Author: fuankg Date: Fri Feb 18 12:12:10 2011 New Revision: 1071974 URL: http://svn.apache.org/viewvc?rev=1071974&view=rev Log: Disable getpass() for HP-UX platform (PR49496). Reported by rajeshkc yahoo.com. Modified: apr/apr/branches/1.5.x/passwd/apr_getpass.c Modified: apr/apr/branches/1.5.x/passwd/apr_getpass.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/passwd/apr_getpass.c?rev=1071974&r1=1071973&r2=1071974&view=diff ============================================================================== --- apr/apr/branches/1.5.x/passwd/apr_getpass.c (original) +++ apr/apr/branches/1.5.x/passwd/apr_getpass.c Fri Feb 18 12:12:10 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