mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
parse_hwdb: enforce the ":*" suffix
This commit is contained in:
parent
c0443b97b7
commit
ad2d8e61ee
@ -201,8 +201,9 @@ def check_matches(groups):
|
||||
except ParseBaseException as e:
|
||||
error('Pattern {!r} is invalid: {}', rest, e)
|
||||
continue
|
||||
if rest[-1] not in '*:':
|
||||
error('pattern {} does not end with "*" or ":"', match)
|
||||
|
||||
if not rest.endswith(':*'):
|
||||
error("pattern {!r} does not end with ':*'", match)
|
||||
|
||||
matches.sort()
|
||||
prev = None
|
||||
|
Loading…
Reference in New Issue
Block a user