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

[RFC] Fix bug where empty $HOME breaks init_homedir(). #9745

Closed
wants to merge 4 commits into from
Closed

[RFC] Fix bug where empty $HOME breaks init_homedir(). #9745

wants to merge 4 commits into from

Conversation

hlpr98
Copy link
Contributor

@hlpr98 hlpr98 commented Mar 17, 2019

This is a pull request which finishes the pull request (#8641 and #8643) made by tomeaton17
Here I use uv_os_homedir() to get $HOME for the current process. I don't use any new buffer for passing as an argument in uv_os_homedir(), but I do create a local variable for storing MAXPATHL. I also set the HOME env variable to the return value of uv_os_homedir().

All the tests are passing.

Fixes the issue #8614

@hlpr98 hlpr98 changed the title [RFC] Fix bug where empty $HOME breaks init_homedir(). #8641 [RFC] Fix bug where empty $HOME breaks init_homedir(). Mar 17, 2019
@marvim marvim added the RFC label Mar 17, 2019
@blueyed
Copy link
Contributor

blueyed commented Jun 11, 2019

Thanks for having started working on it!

lint is still failing (https://travis-ci.org/neovim/neovim/jobs/507539281#L2181), but can be fixed later.

I think this needs a test, and should probably not update the environment?!

@hlpr98
Copy link
Contributor Author

hlpr98 commented Jun 12, 2019

Thank you @blueyed for looking into this. I'm currently working on #10071, I'll get back to this after a little while.

@justinmk justinmk added the startup Nvim startup sequence (`:h startup`) label Oct 22, 2019
@justinmk
Copy link
Member

Thanks for getting this started. Continued at #11140

@justinmk justinmk closed this Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
startup Nvim startup sequence (`:h startup`)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants