warn about deprecated RUN+="socket:" use

This commit is contained in:
Kay Sievers
2012-01-21 03:07:32 +01:00
parent 6102188c93
commit 430959910f
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
View File
@@ -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;