* [pve-devel] [PATCH kernel] debian: find firmware: quote regex metacharacters in directory name
@ 2025-04-28 16:34 Friedrich Weber
2025-05-08 18:27 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Friedrich Weber @ 2025-04-28 16:34 UTC (permalink / raw)
To: pve-devel
The directory name contains the version which may contain characters
with semantics as regex metacharacters, e.g. `+` when building a test
kernel. If they are not quoted, the script does not remove the
directory name from its output, which will cause a build failure in
`fwcheck` even though the firmware did not change.
To avoid that, quote metacharacters in the directory name.
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
---
debian/scripts/find-firmware.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/scripts/find-firmware.pl b/debian/scripts/find-firmware.pl
index a53223c..5c458bb 100755
--- a/debian/scripts/find-firmware.pl
+++ b/debian/scripts/find-firmware.pl
@@ -17,7 +17,7 @@ open(my $FIND_KO_FH, "find '$dir' -name '*.ko'|");
while (defined(my $fn = <$FIND_KO_FH>)) {
chomp $fn;
my $relfn = $fn;
- $relfn =~ s|^$dir/*||;
+ $relfn =~ s|^\Q$dir\E/*||;
my $cmd = "/sbin/modinfo -F firmware '$fn'";
open(my $MOD_FH, "$cmd|");
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH kernel] debian: find firmware: quote regex metacharacters in directory name
2025-04-28 16:34 [pve-devel] [PATCH kernel] debian: find firmware: quote regex metacharacters in directory name Friedrich Weber
@ 2025-05-08 18:27 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-05-08 18:27 UTC (permalink / raw)
To: pve-devel, Friedrich Weber
On Mon, 28 Apr 2025 18:34:12 +0200, Friedrich Weber wrote:
> The directory name contains the version which may contain characters
> with semantics as regex metacharacters, e.g. `+` when building a test
> kernel. If they are not quoted, the script does not remove the
> directory name from its output, which will cause a build failure in
> `fwcheck` even though the firmware did not change.
>
> To avoid that, quote metacharacters in the directory name.
>
> [...]
Applied, thanks!
[1/1] debian: find firmware: quote regex metacharacters in directory name
commit: 8001828edd27af8dc5e772289ecb4a6ca01abb4b
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-08 18:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-28 16:34 [pve-devel] [PATCH kernel] debian: find firmware: quote regex metacharacters in directory name Friedrich Weber
2025-05-08 18:27 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal