Skip to content

Commit 135b784

Browse files
authored
Rollup merge of #66091 - Wind-River:master_xyz, r=cramertj
Implemented the home_dir for VxWorks Use HOME's value if it is set; otherwise return NONE.
2 parents 63e5ed3 + 5083ade commit 135b784

File tree

1 file changed

+2
-1
lines changed
  • src/libstd/sys/vxworks

1 file changed

+2
-1
lines changed

src/libstd/sys/vxworks/os.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ pub fn temp_dir() -> PathBuf {
287287
}
288288

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

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

0 commit comments

Comments
 (0)