Skip to content

chroot fails with a panic #7876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sylvestre opened this issue May 2, 2025 · 0 comments
Open

chroot fails with a panic #7876

sylvestre opened this issue May 2, 2025 · 0 comments

Comments

@sylvestre
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant