apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40256] New: - please don't use hpux getpass()
Date Tue, 15 Aug 2006 17:47:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40256

           Summary: please don't use hpux getpass()
           Product: APR
           Version: 1.2.7
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: deckrider@gmail.com


On HP-UX B.11.23 ia64, apr 1.2.7 decides to use getpass().  This causes problems
when we use subversion, because our password system allows the password to be
longer than 8 characters.  Thus, users with passwords longer than 8 cannot use
the subversion password prompt.

I've removed the check for getpass() in the configure script, forcing apr to use
its internal implementation, and this seems to work for us.

Of course, you will probably want to allow a better way of handling this that
what  I've come up with.

This seems to be related to Bug 14701 which seems to be closed before Version
1.2.7 (but perhaps I'm not reading this right), which is why I opened this report.

Here is a quote from the hpux getpass() man:

      getpass() reads up to a newline or EOF from the file /dev/tty, after
      prompting on the standard error output with the null-terminated string
      prompt and disabling echoing.  A pointer is returned to a null-
      terminated string of at most 8 characters.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message