summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-15 20:20:16 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-01-15 20:20:16 +0100
commitec2dd02e2a2748134f9c8347e12b802b42dea6b5 (patch)
tree657c7c50234f9c559ac7cb65cc2253361e29c609 /udev/udev-rules.c
parent64b333fdcc69798ab7874cf042d590b3f2d990b5 (diff)
udevadm: test - remove --force option
Since a while we change the database with a "test" run, but do not update the node and symlinks. We need to "force" all the time, to keep things in sync.
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index c5f44aa20f..2d120dd927 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -2504,9 +2504,8 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
rule->rule.filename_line);
f = fopen(attr, "w");
if (f != NULL) {
- if (!event->test)
- if (fprintf(f, "%s", value) <= 0)
- err(event->udev, "error writing ATTR{%s}: %m\n", attr);
+ if (fprintf(f, "%s", value) <= 0)
+ err(event->udev, "error writing ATTR{%s}: %m\n", attr);
fclose(f);
} else {
err(event->udev, "error opening ATTR{%s} for writing: %m\n", attr);