From: Simon Ruderich Date: Wed, 11 Apr 2012 11:18:48 +0000 (+0200) Subject: Remove unnecessary capture groups. X-Git-Tag: 0.01~14 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=4560a6bf6b875ba3d8a02711eafd4378f08e6f25 Remove unnecessary capture groups. --- diff --git a/bin/blhc b/bin/blhc index 49640dd..518626d 100755 --- a/bin/blhc +++ b/bin/blhc @@ -711,10 +711,10 @@ foreach my $file (@ARGV) { my ($abi, $os, $cpu) = Dpkg::Arch::debarch_to_debtriplet($arch); # Disable unsupported hardening options. - if ($cpu =~ /^(ia64|alpha|mips|mipsel|hppa)$/ or $arch eq 'arm') { + if ($cpu =~ /^(?:ia64|alpha|mips|mipsel|hppa)$/ or $arch eq 'arm') { $harden_stack = 0; } - if ($cpu =~ /^(ia64|hppa|avr32)$/) { + if ($cpu =~ /^(?:ia64|hppa|avr32)$/) { $harden_relro = 0; $harden_bindnow = 0; }