Kshitij Gupta found and fixed a problem with Glob and Glob w/ Ext behavior

in aa-logprof and aa-genprof that would add duplicate entries to the
interactive list of permissions.

https://bugs.launchpad.net/bugs/1180230
This commit is contained in:
Seth Arnold 2013-07-05 14:12:08 -07:00
parent 7b50892339
commit 03908feacc

View file

@ -3879,8 +3879,8 @@ sub ask_the_questions() {
$newpath =~ s/\/[^\/]+$/\/\*/;
}
}
if ($newpath ne $selected) {
push @options, $newpath;
if (not $newpath ~~ $options) {
push @options, $newpath;
$defaultoption = $#options + 1;
}
}
@ -3896,9 +3896,9 @@ sub ask_the_questions() {
} else {
$newpath =~ s/\/[^\/]+(\.[^\/]+)$/\/\*$1/;
}
if ($newpath ne $selected) {
push @options, $newpath;
$defaultoption = $#options + 1;
if (not $newpath ~~ @options) {
push @options, $newpath;
$defaultoption = $#options + 1;
}
}
} elsif ($ans =~ /\d/) {