Skip to content

Commit 5083ade

Browse files
Umesh KalappaBaoshanPang
Umesh Kalappa
authored andcommitted
Implemented the home_dir for VxWorks
1 parent 2477e24 commit 5083ade

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)