Skip to content
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

chroot thinks that command arguments are for itself (ex: chroot / ls -al) #3963

Closed
sylvestre opened this issue Sep 21, 2022 · 2 comments
Closed
Labels

Comments

@sylvestre
Copy link
Contributor

Currently

$ ./target/debug/coreutils chroot / ls -al
error: Found argument '-a' which wasn't expected, or isn't valid in this context

	If you tried to supply `-a` as a value rather than a flag, use `-- -a`

USAGE:
    ./target/debug/coreutils chroot [OPTION]... NEWROOT [COMMAND [ARG]...]

For more information try --help

with the GNU chroot:
$ sudo chroot / ls -al
works

Probably a clap configuration

@tertsdiepraam
Copy link
Member

Should be fixed by #3907 if I'm not mistaken

@tertsdiepraam
Copy link
Member

❯ cargo run --features unix -- chroot / ls -al
chroot: cannot chroot to '/': Operation not permitted (os error 1)

Looks good on main after #3907 got merged.

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

No branches or pull requests

2 participants