coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

chroot fails with a panic

Open sylvestre opened this issue 7 months ago • 0 comments

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: https://github.com/uutils/coreutils/blob/f49e120877f9367b6bdd7aba178d1cf54fbe8018/src/uu/chroot/src/chroot.rs#L442

we have also this unwrap() https://github.com/uutils/coreutils/blob/f49e120877f9367b6bdd7aba178d1cf54fbe8018/src/uu/chroot/src/chroot.rs#L451 that we should remove.

sylvestre avatar May 02 '25 20:05 sylvestre