Closed
Bug 288397
Opened 20 years ago
Closed 20 years ago
HP-UX: support long hostname
Categories
(Directory :: LDAP C SDK, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nhosoi, Assigned: richm)
Details
Attachments
(1 file)
|
782 bytes,
patch
|
mcs
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•20 years ago
|
||
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.
| Assignee | ||
Comment 2•20 years ago
|
||
Since the definition is not used anywhere, the best solution is to just remove it.
| Assignee | ||
Comment 3•20 years ago
|
||
Mark, do you want to reassign this bug to me? Also, change the OS to HP-UX.
Comment 4•20 years ago
|
||
Reassigned to Rich.
Assignee: mcs → richm
OS: other → HP-UX
Hardware: Other → HP
Comment 5•20 years ago
|
||
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+
| Assignee | ||
Comment 6•20 years ago
|
||
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.
Description
•