Skip to content

chroot fails with a panic #7876

@sylvestre

Description

@sylvestre

with 0.0.30:

thread 'main' panicked at src/uu/chroot/src/chroot.rs:453:45:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I don't have step to reproduce yet.
Maybe it is:

we have also this unwrap()

std::env::set_current_dir("/").unwrap();

that we should remove.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions