Skip to content
Snippets Groups Projects
Verified Commit c26ce376 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Also fail if cwd could not be written to escalated.

parent 5e74d173
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,7 @@ pub fn execve(path: &CStr, arg_env: ArgEnv, interp_override: Option<redox_exec:: ...@@ -225,7 +225,7 @@ pub fn execve(path: &CStr, arg_env: ArgEnv, interp_override: Option<redox_exec::
// individual items. This can be copied directly into the new executable's memory. // individual items. This can be copied directly into the new executable's memory.
let _ = syscall::write(*escalate_fd, &flatten_with_nul(args))?; let _ = syscall::write(*escalate_fd, &flatten_with_nul(args))?;
let _ = syscall::write(*escalate_fd, &flatten_with_nul(envs))?; let _ = syscall::write(*escalate_fd, &flatten_with_nul(envs))?;
let _ = syscall::write(*escalate_fd, &cwd); let _ = syscall::write(*escalate_fd, &cwd)?;
// Closing will notify the scheme, and from that point we will no longer have control // Closing will notify the scheme, and from that point we will no longer have control
// over this process (unless it fails). We do this manually since drop cannot handle // over this process (unless it fails). We do this manually since drop cannot handle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment