diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2016-01-15 18:56:25 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2016-02-05 09:29:00 +0100 |
commit | 35ae0168bbdae2eb7029262f49d394046a67860f (patch) | |
tree | cefe363fd40828f561be6b978e4edd2024f21835 /libdiskfs | |
parent | 6e22fb5616dbacad58cc55544a00efece0477a9a (diff) |
utils/settrans: improve --chroot functionality
Add an option '--chroot-chdir' to settrans and make it chdir to this
directory before executing the target program. Also, look up the
executable in PATH.
With these changes we no longer need to use the shell inside the
chroot in the convenience scripts, and hence do not require it to be
installed inside the chroot.
* utils/fakeroot.sh: Simplify using the new option.
* utils/remap.sh: Likewise.
* utils/settrans.c (OPT_CHROOT_CHDIR): New constant.
(options): New option 'chroot-chdir'.
(main): Handle new option. Search for target executable in PATH.
* utils/fakeauth.c (main): Likewise.
Diffstat (limited to 'libdiskfs')
0 files changed, 0 insertions, 0 deletions