Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repair executable-relative boot file search on NetBSD #889

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

mflatt
Copy link
Contributor

@mflatt mflatt commented Nov 30, 2024

See racket/racket#5122, and thanks to @riastradh.

@riastradh
Copy link

LGTM! (I would personally just do strdup of a PATH_MAX-sized stack buffer, but calling sysctl twice to find the length first and the data next is fine too, particularly if there's any chance of small stack limits.)

@mflatt
Copy link
Contributor Author

mflatt commented Nov 30, 2024

Thanks for the review! I don't trust PATH_MAX generally, and while it's possibly reliable on NetBSD, I think it's best to avoid.

@mflatt mflatt merged commit 4686f6b into cisco:main Dec 1, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants