diff --git a/0001-bypass-wrong-output-when-enabled-selinux.patch b/0001-bypass-wrong-output-when-enabled-selinux.patch index d9b3a83db36c3778d680bd3ec04aed4f234667ae..b897931962139ce1b9cbcad8ce74345fcb0d8148 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++; diff --git a/attr.spec b/attr.spec index 7395b318ecfd267975b541f64a26fddf387d63c9..bb13de42b5ed2ea784fdbedcf6777adcbba07f9e 100644 --- a/attr.spec +++ b/attr.spec @@ -1,7 +1,7 @@ %{!?_licensedir:%global license %%doc} Name: attr Version: 2.4.48 -Release: 6 +Release: 7 Summary: Commands for Manipulating Filesystem Extended Attributes License: GPLv2+ AND LGPLv2+ URL: https://savannah.nongnu.org/projects/attr @@ -93,6 +93,13 @@ make %{?_smp_mflags} check %{_mandir}/man3/* %changelog +* Mon Mar 16 2020 Shijie Luo - 2.4.48-7 +- Type:bugfix +- ID:NA +- SUG:restart +- DESC:fix error condition of while loop + in 0001-bypass-wrong-output-when-enabled-selinux.patch. + * Mon Mar 16 2020 Shijie Luo - 2.4.48-6 - Type:bugfix - ID:NA