Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 67854
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: ping.liang [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Test t/tmpdir.t fails at the 3rd test...
Download (untitled) / with headers
text/plain 407b
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.
Subject: Re: [rt.cpan.org #67854] Test t/tmpdir.t fails at the 3rd test...
Date: Thu, 05 May 2011 16:12:46 -0400
To: bug-CGI.pm [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Download (untitled) / with headers
text/plain 569b
Show quoted text
> > 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.
Thanks for figuring this out! If you'd like to contribute a patch, I'll be happy to credit you for it in the next release. Mark
I think this was a dupe of RT#67854, for a which a fix was already released. Resolving.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.