| 1 |
diff -up perl-5.10.0/lib/File/Path.pm.BAD perl-5.10.0/lib/File/Path.pm
|
| 2 |
--- perl-5.10.0/lib/File/Path.pm.BAD 2009-03-11 17:54:57.000000000 -0400
|
| 3 |
+++ perl-5.10.0/lib/File/Path.pm 2009-03-11 17:55:32.000000000 -0400
|
| 4 |
@@ -333,7 +333,7 @@ sub _rmtree {
|
| 5 |
}
|
| 6 |
else {
|
| 7 |
_error($arg, "cannot remove directory", $canon);
|
| 8 |
- if (!chmod($perm, ($Is_VMS ? VMS::Filespec::fileify($root) : $root))
|
| 9 |
+ if ($Force_Writeable && !chmod($perm, ($Is_VMS ? VMS::Filespec::fileify($root) : $root))
|
| 10 |
) {
|
| 11 |
_error($arg, sprintf("cannot restore permissions to 0%o",$perm), $canon);
|
| 12 |
}
|