perlPackages.FileFindRule: 0.34 -> 0.35

0.35 contains the upstream fix for CVE-2011-10007.

Assisted-by: Claude Code (Claude Opus 5)
Signed-off-by: Stig Palmquist <git@stig.io>
(cherry picked from commit 61d5a4891a)
This commit is contained in:
Stig Palmquist
2026-08-09 00:51:03 +00:00
committed by Marcus Ramberg
parent 6004c4f5d2
commit 7a77df36a8
2 changed files with 3 additions and 31 deletions

View File

@@ -1,25 +0,0 @@
From ca70a73bb147549e62e74751d924b1dbb59d1707 Mon Sep 17 00:00:00 2001
From: Stig Palmquist <stig@stig.io>
Date: Thu, 5 Jun 2025 03:45:50 +0200
Subject: [PATCH] Fix CVE-2011-10007
---
lib/File/Find/Rule.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/File/Find/Rule.pm b/lib/File/Find/Rule.pm
index feccc76..d4dc475 100644
--- a/lib/File/Find/Rule.pm
+++ b/lib/File/Find/Rule.pm
@@ -420,7 +420,7 @@ sub grep {
$self->exec( sub {
local *FILE;
- open FILE, $_ or return;
+ open FILE, '<', $_ or return;
local ($_, $.);
while (<FILE>) {
for my $p (@pattern) {
--
2.49.0

View File

@@ -13638,14 +13638,11 @@ with self;
FileFindRule = buildPerlPackage {
pname = "File-Find-Rule";
version = "0.34";
version = "0.35";
src = fetchurl {
url = "mirror://cpan/authors/id/R/RC/RCLAMP/File-Find-Rule-0.34.tar.gz";
hash = "sha256-fm8WzDPrHyn/Jb7lHVE/S4qElHu/oY7bLTzECi1kyv4=";
url = "mirror://cpan/authors/id/R/RC/RCLAMP/File-Find-Rule-0.35.tar.gz";
hash = "sha256-K9VWKJptRK0u50gDJYuwsAUNJG8egcqrCyY8MDrPDII=";
};
patches = [
../development/perl-modules/FileFindRule-CVE-2011-10007.patch
];
propagatedBuildInputs = [
NumberCompare
TextGlob