Use relibc chdir for fchdir

This commit is contained in:
Jeremy Soller
2022-08-24 08:50:50 -06:00
parent 915359d11d
commit 2cd461fa21
+1 -1
View File
@@ -232,7 +232,7 @@ impl Pal for Sys {
!0
} else {
match str::from_utf8(&buf[..res]) {
Ok(path) => e(syscall::chdir(&path)) as c_int,
Ok(path) => Sys::chdir(&CString::new(path).unwrap()),
Err(_) => {
unsafe { errno = EINVAL };
return -1;