2007-08-21 08:19:13 +02:00
|
|
|
Using ikiwiki version 2.5gpa1 (the backport to Debian 3.1), I suddenly started getting the following error when rebuilding the wiki:
|
|
|
|
|
2007-08-21 08:21:20 +02:00
|
|
|
<pre>
|
|
|
|
successfully generated /home/ikiwiki/cgi-bin/ikiwiki.cgi
|
|
|
|
Insecure dependency in rmdir while running with -T switch at /usr/share/perl5/IkiWiki/Render.pm line 242.
|
|
|
|
BEGIN failed--compilation aborted at (eval 5) line 130.
|
|
|
|
</pre>
|
2007-08-21 08:19:13 +02:00
|
|
|
|
|
|
|
I've no idea what's happening (hey, I'm a C programmer), but I've hacked prune() to workaround this as follows:
|
|
|
|
|
2007-08-21 08:21:20 +02:00
|
|
|
<pre>
|
2007-08-21 08:23:07 +02:00
|
|
|
use Scalar::Util qw(tainted);
|
2007-08-21 08:19:13 +02:00
|
|
|
|
|
|
|
sub prune ($) { #{{{
|
|
|
|
my $file=shift;
|
|
|
|
|
|
|
|
unlink($file);
|
|
|
|
my $dir=dirname($file);
|
|
|
|
if (!tainted($file) && $dir =~ /^(.*)$/) {
|
|
|
|
$dir = $1;
|
|
|
|
}
|
|
|
|
while (rmdir($dir)) {
|
|
|
|
$dir=dirname($dir);
|
|
|
|
if (!tainted($file) && $dir =~ /^(.*)$/) {
|
|
|
|
$dir = $1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} #}}}
|
2007-08-21 09:16:02 +02:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
> Old versions of perl are known to have bugs with taint checking.
|
|
|
|
> I don't really support using ikiwiki with the perl 5.8.4 in debian
|
|
|
|
> oldstable, and would recommend upgrading. --[[Joey]]
|