coreutils
coreutils copied to clipboard
chroot fails with a panic
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.