Skip to content

Commit

Permalink
Rollup merge of #66091 - Wind-River:master_xyz, r=cramertj
Browse files Browse the repository at this point in the history
Implemented the home_dir for VxWorks

Use HOME's value if it is set;
otherwise return NONE.
  • Loading branch information
pietroalbini authored Nov 5, 2019
2 parents 63e5ed3 + 5083ade commit 135b784
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/sys/vxworks/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ pub fn temp_dir() -> PathBuf {
}

pub fn home_dir() -> Option<PathBuf> {
None
crate::env::var_os("HOME").or_else(|| None
).map(PathBuf::from)
}

pub fn exit(code: i32) -> ! {
Expand Down

0 comments on commit 135b784

Please sign in to comment.