Inspired by Coverity perl5 CID 28931: Insecure chroot: (CHROOT)
chroot_call.
The Perl chroot() is a thin wrapper around the system call, so the
chdir("/") should not go there. But adding a note about the chdir()
being a good idea to perlfunc/chroot.
The committer reworded the inserted text for grammar and readability,
and the commit message to conform to git standards, and is pushing the
commit with the concurrence of the author.
reasons, this call is restricted to the superuser. If FILENAME is
omitted, does a C<chroot> to C<$_>.
+B<NOTE:> It is good security practice to do C<chdir("/")> (to the root
+directory) immediately after a C<chroot()>.
+
Portability issues: L<perlport/chroot>.
=item close FILEHANDLE