about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorn-salim <53019816+n-salim@users.noreply.github.com>2019-09-20 16:20:29 -0700
committerGitHub <noreply@github.com>2019-09-20 16:20:29 -0700
commit494d83c89279a955dfb559ded5d5ac2ac06fc255 (patch)
tree3faefa9a1a85b023b39e13b41a02b1897f0ff3e1 /src/libstd/sys
parentfbf9fa412dbadb580cfed2214933866428e8ad6b (diff)
parentb956ae38e16a8f04b31d5cf5788f1d357617efbc (diff)
downloadrust-494d83c89279a955dfb559ded5d5ac2ac06fc255.tar.gz
rust-494d83c89279a955dfb559ded5d5ac2ac06fc255.zip
Merge pull request #25 from Wind-River/stat
rust stat should call libc stat
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/vxworks/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/vxworks/fs.rs b/src/libstd/sys/vxworks/fs.rs
index d537d2258fd..51fdb1c0e55 100644
--- a/src/libstd/sys/vxworks/fs.rs
+++ b/src/libstd/sys/vxworks/fs.rs
@@ -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 })
 }