-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chroot: quick fix for #2687
#2689
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
Conversation
jhscheer
commented
Sep 19, 2021
- fixes chroot: thread 'main' panicked #2687
- change error message to better mimic GNU
|
Could you please add a test to make sure we don't regress? |
* fixes uutils#2687 * change error message to better mimic GNU
f861f52 to
94fbe1e
Compare
|
Sorry I don't know how to implement a feasible test for this since root permission is required to trigger the relevant parts. |
|
oh, just that passing 0 argument doesn't panic :) |
I added a test. It depends on #2692 to be merged first. |
* move the command building logic before the `chroot` syscall so it will be reachable by tests that don't have root permissions.
|
I gave this some more thought and moved the the command building logic before the |
1538ac2 to
30c8a43
Compare