Merge branch 'cboltz-status-parenthesis' into 'master'

aa-status: handle profile names containing '('

Closes #51

See merge request apparmor/apparmor!415

Acked-by: John Johansen <john.johansen@canonical.com> for 2.10..master

(cherry picked from commit b76567ce10)

41d26b01 aa-status: handle profile names containing '('
This commit is contained in:
Christian Boltz 2019-09-23 18:55:22 +00:00
parent 81f6724747
commit 937c5a15b2

View file

@ -148,7 +148,7 @@ def get_profiles():
sys.exit(4)
for p in f.readlines():
match = re.search("^([^\(]+)\s+\((\w+)\)$", p)
match = re.search("^(.+)\s+\((\w+)\)$", p)
profiles[match.group(1)] = match.group(2)
f.close()