mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 21:07:56 +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:
parent
7b50892339
commit
03908feacc
@ -3879,7 +3879,7 @@ sub ask_the_questions() {
|
|||||||
$newpath =~ s/\/[^\/]+$/\/\*/;
|
$newpath =~ s/\/[^\/]+$/\/\*/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($newpath ne $selected) {
|
if (not $newpath ~~ $options) {
|
||||||
push @options, $newpath;
|
push @options, $newpath;
|
||||||
$defaultoption = $#options + 1;
|
$defaultoption = $#options + 1;
|
||||||
}
|
}
|
||||||
@ -3896,7 +3896,7 @@ sub ask_the_questions() {
|
|||||||
} else {
|
} else {
|
||||||
$newpath =~ s/\/[^\/]+(\.[^\/]+)$/\/\*$1/;
|
$newpath =~ s/\/[^\/]+(\.[^\/]+)$/\/\*$1/;
|
||||||
}
|
}
|
||||||
if ($newpath ne $selected) {
|
if (not $newpath ~~ @options) {
|
||||||
push @options, $newpath;
|
push @options, $newpath;
|
||||||
$defaultoption = $#options + 1;
|
$defaultoption = $#options + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user