diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-09 01:27:56 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-09 01:28:02 +0900 |
commit | 5abba26e2f9eb9336e701228220f0ef62c95f316 (patch) | |
tree | 7e06679403e5abdb71206129177c70ae8fcc56a8 | |
parent | 77b1af585a496dd507114c29958940621c192de2 (diff) | |
download | systemd-5abba26e2f9eb9336e701228220f0ef62c95f316.tar.gz |
udev: add missing flag for OPTIONS=static_node
Fixes RHBZ#1740664.
-rw-r--r-- | src/udev/udev-rules.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 1642f10535..21f84b25ce 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -499,6 +499,9 @@ static int rule_line_add_token(UdevRuleLine *rule_line, UdevRuleTokenType type, TK_A_OWNER_ID, TK_A_GROUP_ID, TK_A_MODE_ID)) SET_FLAG(rule_line->type, LINE_HAS_DEVLINK, true); + else if (token->type == TK_A_OPTIONS_STATIC_NODE) + SET_FLAG(rule_line->type, LINE_HAS_STATIC_NODE, true); + else if (token->type >= _TK_A_MIN || IN_SET(token->type, TK_M_PROGRAM, TK_M_IMPORT_FILE, TK_M_IMPORT_PROGRAM, TK_M_IMPORT_BUILTIN, |