Closed Bug 288397 Opened 20 years ago Closed 20 years ago

HP-UX: support long hostname

Categories

(Directory :: LDAP C SDK, defect)

HP
HP-UX
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nhosoi, Assigned: richm)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

HP sent a request to allow them to use longer hostname.  Currently,
MAXHOSTNAMELEN is set to 64.  Could you please apply the following patch?

ldapsdk components
===================

###########################################################
# ./mozilla/directory/c-sdk/ldap/libraries/libldap/open.c #
###########################################################
47a48,54

>> #if defined(__hpux)
>> #if (MAXHOSTNAMELEN < 256)
>> #   undef MAXHOSTNAMELEN
>> #   define MAXHOSTNAMELEN 256
>> #endif
>> #endif
>> 


Reproducible: Always

Steps to Reproduce:
Use hostname longer than 64 characters and shorter than 255 characters.
OK, but I do not see where MAXHOSTNAMELEN is used in the code.  Is it used
indirectly (affecting some header that is included later)?  I don't see it.
Since the definition is not used anywhere, the best solution is to just remove
it.
Mark, do you want to reassign this bug to me?  Also, change the OS to HP-UX.
Reassigned to Rich.
Assignee: mcs → richm
OS: other → HP-UX
Hardware: Other → HP
Comment on attachment 180803 [details] [diff] [review]
Diffs to remove MAXHOSTNAMELEN definition

Looks good to me.  Please commit when you have a chance.
Attachment #180803 - Flags: review+
Checking in mozilla/directory/c-sdk/ldap/libraries/libldap/open.c;
/cvsroot/mozilla/directory/c-sdk/ldap/libraries/libldap/open.c,v  <--  open.c
new revision: 5.6; previous revision: 5.5
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: