Subject: | t/tmpdir.t failures |
Broken in 3.61 (for some reason the "Broken in" list ends at 3.48).
Previously some broken tests were TODO'd away:
https://github.com/markstos/CGI.pm/commit/cc73dc9807b0fabb56b3cdf1a9726588b2eda
0f7#t/tmpdir.t
For some reason they were re-enabled in 3.61:
https://github.com/markstos/CGI.pm/blob/3460215fc0d95e4b5d0320b6376403517b79f94
5/t/tmpdir.t
The problem is that the tests do "chmod 500" and then try and confirm lack of writability
using "-w $testdir". However, root can write to a 500 directory!
Show quoted text
> mkdir foo
> chmod 500 foo
> perl -e '$w = -w "foo" ? "writable" : "not writable"; print "$w\n";'
not writable
Show quoted text> su
> perl -e '$w = -w "foo" ? "writable" : "not writable"; print "$w\n";'
writable
So now CGI will fail this test for everyone trying to install it with root privileges.