Skip to content

Trim 'search' list field on macOS#478

Merged
openshift-merge-bot[bot] merged 1 commit intocontainers:mainfrom
evidolob:fix-resolver-search
Mar 4, 2025
Merged

Trim 'search' list field on macOS#478
openshift-merge-bot[bot] merged 1 commit intocontainers:mainfrom
evidolob:fix-resolver-search

Conversation

@evidolob
Copy link
Copy Markdown
Collaborator

@evidolob evidolob commented Mar 4, 2025

According to macOS 'man 5 resolver' 'search' is limited to six domains with a total of 256 characters. This commit uses only 256/6 domains and cuts rest.

Fixes #474

Since glibc 2.26 Linux has no limitation on 'search'.

I have check that with

search home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home home

in /etc/resolv.conf with his PR podman machine is starting successfully

@evidolob evidolob requested review from cfergeau and lstocchi March 4, 2025 08:28
@openshift-ci openshift-ci bot added the approved label Mar 4, 2025
According to macOS 'man 5 resolver' 'search' is limited to six domains with a total of 256 characters. This commit uses only 256/6 domains and cuts rest.

Since glibc 2.26 Linux has no limitation on 'search'.

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob force-pushed the fix-resolver-search branch from bdc91a4 to 788ed77 Compare March 4, 2025 08:31
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Mar 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cfergeau, evidolob

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cfergeau
Copy link
Copy Markdown
Collaborator

cfergeau commented Mar 4, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 4, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 0acc12d into containers:main Mar 4, 2025
21 of 22 checks passed
@evidolob evidolob deleted the fix-resolver-search branch March 4, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gvproxy failure when search domain string is too long?

2 participants