]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Remove unnecessary capture groups.
authorSimon Ruderich <simon@ruderich.org>
Wed, 11 Apr 2012 11:18:48 +0000 (13:18 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 11 Apr 2012 11:18:48 +0000 (13:18 +0200)
bin/blhc

index 49640dd5eb379c70d1fce2d22c47751582a47be7..518626d54429f6570def1af01e9d163491732782 100755 (executable)
--- 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;
         }