Skip to content

Commit 494d83c

Browse files
authored
Merge pull request rust-lang#25 from Wind-River/stat
rust stat should call libc stat
2 parents fbf9fa4 + b956ae3 commit 494d83c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

src/libstd/sys/vxworks/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ pub fn stat(p: &Path) -> io::Result<FileAttr> {
529529
let p = cstr(p)?;
530530
let mut stat: stat64 = unsafe { mem::zeroed() };
531531
cvt(unsafe {
532-
libc::lstat(p.as_ptr(), &mut stat as *mut _ as *mut _)
532+
libc::stat(p.as_ptr(), &mut stat as *mut _ as *mut _)
533533
})?;
534534
Ok(FileAttr { stat })
535535
}

0 commit comments

Comments
 (0)