mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 00:05:14 +00:00
fix bnc#407491, where a solatary / is not properly handled by the utils
The / is stripped and permission is prompted for a "" path.
This commit is contained in:
@@ -6574,7 +6574,7 @@ sub parse_event($) {
|
|||||||
|
|
||||||
# remove null responses
|
# remove null responses
|
||||||
for (keys(%ev)) {
|
for (keys(%ev)) {
|
||||||
if ( ! $ev{$_} || $ev{$_} !~ /\w+/) { delete($ev{$_}); }
|
if ( ! $ev{$_} || $ev{$_} !~ /[\/\w]+/) { delete($ev{$_}); }
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $ev{'sdmode'} ) {
|
if ( $ev{'sdmode'} ) {
|
||||||
|
Reference in New Issue
Block a user