From c02804e0f6964ce1c51941a32de67946e5ffe0c3 Mon Sep 17 00:00:00 2001 From: shijieluo Date: Mon, 16 Mar 2020 10:17:56 +0800 Subject: [PATCH] update 0001-bypass-wrong-output-when-enabled-selinux.patch. fix logical error in while loop --- 0001-bypass-wrong-output-when-enabled-selinux.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0001-bypass-wrong-output-when-enabled-selinux.patch b/0001-bypass-wrong-output-when-enabled-selinux.patch index d9b3a83..b897931 100644 --- a/0001-bypass-wrong-output-when-enabled-selinux.patch +++ b/0001-bypass-wrong-output-when-enabled-selinux.patch @@ -35,7 +35,7 @@ index 4b1f8d0..5c017cc 100755 - (!$use_re && $result->[$n] ne $out->[$n]) || - ( $use_re && $result->[$n] !~ /^$out->[$n]/)) { - push @good, ($use_re ? '!~' : '!='); -+ while ($m < $mmax-1 && ++ while ($m < $mmax && + (!$use_re && $result->[$m] ne $out->[$n]) || + ( $use_re && $result->[$m] !~ /^$out->[$n]/)) { + $m++;