4
15
Fork
You've already forked gmid
1

work around super-tiny HOST_NAME_MAX on glibc system #4

Closed
op wants to merge 0 commits from fix-host-name-max-len into master
pull from: fix-host-name-max-len
merge into: op:master
op:master
Owner
Copy link

glibc is clearly violating POSIX since they set HOST_NAME_MAX to 64, and they've known so for years. Unfortunately this means that, despite using the right interfaces, we have to work around bugs in their libc. ugh.

Luckily, gmid doesn't need to do DNS, it just needs a define large enough to store a hostname, but not unlimited, to catch possible misconfigurations.

glibc is clearly violating POSIX since they set HOST_NAME_MAX to 64, and they've known so for years. Unfortunately this means that, despite using the right interfaces, we have to work around bugs in their libc. ugh. Luckily, gmid doesn't need to do DNS, it just needs a define large enough to store a hostname, but not unlimited, to catch possible misconfigurations.
op force-pushed fix-host-name-max-len from a28f239700 to aab98e1ec0 2024年08月22日 16:37:04 +02:00 Compare
op force-pushed fix-host-name-max-len from aab98e1ec0 to 2f57c36f2f 2024年08月23日 12:22:47 +02:00 Compare
Author
Owner
Copy link

merged manually.

merged manually.
op closed this pull request 2024年08月23日 13:04:16 +02:00
op deleted branch fix-host-name-max-len 2024年08月23日 13:04:27 +02:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
op/gmid!4
Reference in a new issue
op/gmid
No description provided.
Delete branch "fix-host-name-max-len"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?