To make the logic more resilient towards potential errors or future
output changes, not only consider the string index but also validate
it against a set of expected positions.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Remove superfluous "acl_" prefix from function names, the module
is already called "acl".
Replace hardcoded test path with functions to parse a given file.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
For a better code style:
- consistent trailing commas
- use constant instead of repeated "magic" values
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>