mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: sort feature directory entries in to match libapparmor's directory traversal
This commit is contained in:
parent
5910b50926
commit
e82a23dfe4
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ def read_features_dir(path):
|
|||
if not os.path.exists(path) or not os.path.isdir(path):
|
||||
return result
|
||||
|
||||
for name in os.listdir(path):
|
||||
for name in sorted(os.listdir(path)):
|
||||
entry = os.path.join(path, name)
|
||||
result += '%s {' % name
|
||||
if os.path.isfile(entry):
|
||||
|
|
Loading…
Add table
Reference in a new issue