diff options
author | msizanoen1 <msizanoen@qtmlabs.xyz> | 2022-12-27 05:57:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-03 18:39:22 +0100 |
commit | 310249903986957997b76bc52441cabb5843aad8 (patch) | |
tree | c896e88bcd2f164188204419219df58fd6628dcb /src/udev/udev-rules.c | |
parent | Added Tablet Teclast X98 Air 3G (C5J6) (diff) | |
download | systemd-310249903986957997b76bc52441cabb5843aad8.tar.xz systemd-310249903986957997b76bc52441cabb5843aad8.zip |
udev: match device tags in rules using current device tags
This ensures that udev scripts using `TAG-="..."` and expecting later
udev rules to honor it will work properly. An use case is removing the
`uaccess` tag from a device without overriding the original file and
ensuring that `73-seat-uaccess.rules` won't run the uaccess builtin later.
Diffstat (limited to '')
-rw-r--r-- | src/udev/udev-rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 3b0cdda74e..52bf66ab0b 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -1641,7 +1641,7 @@ static int udev_rule_apply_token_to_event( case TK_M_PARENTS_TAG: { const char *val; - FOREACH_DEVICE_TAG(dev, val) + FOREACH_DEVICE_CURRENT_TAG(dev, val) if (token_match_string(token, val)) return token->op == OP_MATCH; return token->op == OP_NOMATCH; |