summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-rules.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-29 22:33:53 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-01 14:13:31 +0200
commit9c69cd7ec02f9cca3fdb313beb992ae8ea16e8e4 (patch)
tree955a43e3a1de517996e191cc93dc73d6e7c9e46d /src/udev/udev-rules.c
parentMerge pull request #12916 from yuwata/meson-drop-duplicated-line (diff)
downloadsystemd-9c69cd7ec02f9cca3fdb313beb992ae8ea16e8e4.tar.xz
systemd-9c69cd7ec02f9cca3fdb313beb992ae8ea16e8e4.zip
udev: accept lines which have only PROGRAM=
As PROGRAM= may cause side effect, and users may expect that.
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r--src/udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index bbba2b49d2..303594fa51 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -502,7 +502,7 @@ static int rule_line_add_token(UdevRuleLine *rule_line, UdevRuleTokenType type,
SET_FLAG(rule_line->type, LINE_HAS_DEVLINK, true);
else if (token->type >= _TK_A_MIN ||
- IN_SET(token->type,
+ IN_SET(token->type, TK_M_PROGRAM,
TK_M_IMPORT_FILE, TK_M_IMPORT_PROGRAM, TK_M_IMPORT_BUILTIN,
TK_M_IMPORT_DB, TK_M_IMPORT_CMDLINE, TK_M_IMPORT_PARENT))
SET_FLAG(rule_line->type, LINE_UPDATE_SOMETHING, true);