parser: sort feature directory entries in to match libapparmor's directory traversal

This commit is contained in:
Jon Tourville 2021-07-16 08:57:57 -05:00
parent 5910b50926
commit e82a23dfe4

View file

@ -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):