2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

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,7 +3879,7 @@ sub ask_the_questions() {
$newpath =~ s/\/[^\/]+$/\/\*/;
}
}
if ($newpath ne $selected) {
if (not $newpath ~~ $options) {
push @options, $newpath;
$defaultoption = $#options + 1;
}
@ -3896,7 +3896,7 @@ sub ask_the_questions() {
} else {
$newpath =~ s/\/[^\/]+(\.[^\/]+)$/\/\*$1/;
}
if ($newpath ne $selected) {
if (not $newpath ~~ @options) {
push @options, $newpath;
$defaultoption = $#options + 1;
}