warn about deprecated RUN+="socket:" use
This commit is contained in:
@@ -1451,6 +1451,9 @@ static int add_rule(struct udev_rules *rules, char *line,
|
||||
}
|
||||
|
||||
if (strcmp(key, "RUN") == 0) {
|
||||
if (strncmp(value, "socket:", 7) == 0)
|
||||
err(rules->udev, "RUN+=\"socket:...\" support will be removed from a future udev release. "
|
||||
"Please remove it from: %s:%u and use libudev to subscribe to events.\n", filename, lineno);
|
||||
rule_add_key(&rule_tmp, TK_A_RUN, op, value, NULL);
|
||||
continue;
|
||||
}
|
||||
|
||||
+1
-1
@@ -230,7 +230,7 @@ static void worker_new(struct event *event)
|
||||
sigset_t mask;
|
||||
int rc = EXIT_SUCCESS;
|
||||
|
||||
/* move initial device from queue */
|
||||
/* take initial device from queue */
|
||||
dev = event->dev;
|
||||
event->dev = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user