Update library/std/src/sys/pal/unix/process/process_unix.rs
Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
parent
f2d1edfea5
commit
d2f93c9707
@ -335,7 +335,7 @@ unsafe fn do_exec(
|
||||
cvt(libc::setuid(u as uid_t))?;
|
||||
}
|
||||
}
|
||||
if let Some(ref cwd) = self.get_cwd() {
|
||||
if let Some(cwd) = self.get_cwd() {
|
||||
cvt(libc::chdir(cwd.as_ptr()))?;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user