Subject: | Test t/tmpdir.t fails at the 3rd test... |
When using CPAN to install CGI under user root in Fedora, test t/tmpdir.t
fails at the 3rd test, where CGITempFile->new is supposed to skip the
directory that is not writeable.
The problem is user root can always write to the $test_dir, even after
chmod 0500. In other words,
if ( -w $CGITempFile::TMPDIRECTORY ) {
# root always comes here.
}
This code never has problem when the user is not root.