Update library/std/src/sys/pal/unix/process/process_unix.rs

Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
Yuri Astrakhan 2024-10-02 14:25:14 -04:00 committed by Yuri Astrakhan
parent f2d1edfea5
commit d2f93c9707

View File

@ -335,7 +335,7 @@ impl Command {
cvt(libc::setuid(u as uid_t))?; 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()))?; cvt(libc::chdir(cwd.as_ptr()))?;
} }