Skip to content

Commit

Permalink
Merge pull request #25 from Wind-River/stat
Browse files Browse the repository at this point in the history
rust stat should call libc stat
  • Loading branch information
n-salim committed Sep 20, 2019
2 parents fbf9fa4 + b956ae3 commit 494d83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys/vxworks/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ pub fn stat(p: &Path) -> io::Result<FileAttr> {
let p = cstr(p)?;
let mut stat: stat64 = unsafe { mem::zeroed() };
cvt(unsafe {
libc::lstat(p.as_ptr(), &mut stat as *mut _ as *mut _)
libc::stat(p.as_ptr(), &mut stat as *mut _ as *mut _)
})?;
Ok(FileAttr { stat })
}
Expand Down

0 comments on commit 494d83c

Please sign in to comment.