Hi there!
Newer versions of chroot does a chdir("/"). Under most circumstances this
is okay, but I'd like to have the older behaviour also available since I
do need it.
Reason: I have a beautiful backup utility. I store a Linux ext2-image on a
machine, mount it under /mnt via the loop device, and run a tar command in
there. I wish the output of the command to appear outside /mnt. Okay, I
can easily connect the standard output of tar to somewhere, but sometimes
it's more comfortable to use a
"chroot /mnt tar czf ./foobar.tar.gz /path1/file1 /path2/file2"
which creates foobar.tar.gz outside /mnt.
Please add a command line option to chroot to disable chdir-ing.
Best regards,
Egmont Koblinger