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

Don't auto-generate getcwd libc wrapper #2887

Merged
merged 1 commit into from
Apr 20, 2023
Merged

Conversation

sporksmith
Copy link
Contributor

Unlike most libc syscall wrappers, getcwd is supposed to return NULL instead of -1 on errors. The incorrect wrapper was causing a segfault when trying to run bash under shadow.

@sporksmith sporksmith self-assigned this Apr 20, 2023
@github-actions github-actions bot added Component: Documentation In-repository documentation, under docs/ Component: Libraries Support functions like LD_PRELOAD and logging labels Apr 20, 2023
Unlike most libc syscall wrappers, getcwd is supposed to return NULL
instead of -1 on errors. The incorrect wrapper was causing a segfault
when trying to run bash under shadow.
@sporksmith sporksmith merged commit 7372dca into shadow:main Apr 20, 2023
21 checks passed
@sporksmith sporksmith deleted the getcwd branch April 20, 2023 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation In-repository documentation, under docs/ Component: Libraries Support functions like LD_PRELOAD and logging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants