]> err.no Git - systemd/commitdiff
udev: fix RUN+= logic regarding builtin vs. program
authorKay Sievers <kay@vrfy.org>
Wed, 11 Apr 2012 20:34:25 +0000 (22:34 +0200)
committerKay Sievers <kay@vrfy.org>
Wed, 11 Apr 2012 20:34:25 +0000 (22:34 +0200)
src/udev/udev-rules.c

index c371298a691a7cd102a85f94d1ef71c2d26a34f3..4e85760bd4402a388573463e426ac362edcadf37 100644 (file)
@@ -1052,8 +1052,8 @@ static int rule_add_key(struct rule_tmp *rule_tmp, enum token_type type,
         case TK_A_DB_PERSIST:
                 break;
         case TK_A_RUN_BUILTIN:
-                token->key.builtin_cmd = *(enum udev_builtin_cmd *)data;
         case TK_A_RUN_PROGRAM:
+                token->key.builtin_cmd = *(enum udev_builtin_cmd *)data;
                 token->key.value_off = add_string(rule_tmp->rules, value);
                 break;
         case TK_A_INOTIFY_WATCH: