mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
7b50892339
commit
03908feacc
1 changed files with 5 additions and 5 deletions
|
@ -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/) {
|
||||
|
|
Loading…
Add table
Reference in a new issue