This function does the same operation as the
call - see
(2). If successful,
becomes the new
root directory for the current process - the starting point for
pathnames beginning with "
". This directory is inherited
calls and by all subprocesses. There is no way to
. Only the superuser can use this function.
Here's some code that approximates what many FTP servers do:
or die "Can't do anonymous ftp: $!\n";