update 0001-bypass-wrong-output-when-enabled-selinux.patch.

fix logical error in while loop
This commit is contained in:
shijieluo 2020-03-16 10:17:56 +08:00 committed by Gitee
parent 9478f03ce4
commit c02804e0f6

View File

@ -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++;