Skip to content

add set_homedir function#1269

Open
wiiznokes wants to merge 1 commit into
rust-lang:mainfrom
wiiznokes:home-dir
Open

add set_homedir function#1269
wiiznokes wants to merge 1 commit into
rust-lang:mainfrom
wiiznokes:home-dir

Conversation

@wiiznokes

Copy link
Copy Markdown

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Jun 1, 2026
@rustbot

rustbot commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (NB. this repo may be misconfigured) some time within the next two weeks.

Comment thread src/opts.rs
/// # Safety
/// This function is modifying a C global without synchronization, so it is not
/// thread safe, and should only be called before any thread is spawned.
pub unsafe fn set_homedir(homedir: std::ffi::CString) -> Result<(), Error> {

@ehuss ehuss Jun 20, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this take IntoCString like other functions in this module?

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Waiting on review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants