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

Avoid potential runtime panic in connection initialization #666

Merged
merged 1 commit into from
Oct 19, 2017
Merged

Avoid potential runtime panic in connection initialization #666

merged 1 commit into from
Oct 19, 2017

Conversation

necaris
Copy link

@necaris necaris commented Oct 18, 2017

Attempt to use $HOME to find the user's home directory to avoid calling user.Current, which can runtime panic due to a known glibc bug. This emulates the fix in https://go-review.googlesource.com/c/oauth2/+/34175, to work around http://golang.org/issue/13470 .

Attempt to use `$HOME` to find the user's home directory to avoid calling
`user.Current`, which can runtime panic due to a known glib bug. This emulates
the fix in https://go-review.googlesource.com/c/oauth2/+/34175, to work around
http://golang.org/issue/13470
@quasiben quasiben mentioned this pull request Oct 18, 2017
7 tasks
@pgaskin
Copy link

pgaskin commented Oct 18, 2017

This does solve go-gitea/gitea#2728 based on my testing.

@necaris necaris changed the title Avoid user.Current which can runtime panic Avoid user.Current in connection initialization, which can runtime panic Oct 19, 2017
@necaris necaris changed the title Avoid user.Current in connection initialization, which can runtime panic Avoid potential runtime panic in connection initialization Oct 19, 2017
@maddyblue maddyblue merged commit 456514e into lib:master Oct 19, 2017
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.

4 participants