summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-04-07 13:41:13 +0200
committerKay Sievers <kay@vrfy.org>2012-04-08 16:09:42 +0200
commit58db57fedfe5787ed36c3098787a7cdbddc80bcb (patch)
tree950ee04bc075a4fb9512ff9a2219bddd6dbe1c04 /src
parentbaa30fbc2c04b23209d0b8fb3c86cd15ef9ea81a (diff)
udev: fix rules sort order
Commit 91418155ae9034f466d436c314cd136309bc557d moved around the code, but did not chang ethe array index.
Diffstat (limited to 'src')
-rw-r--r--src/udev/libudev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/libudev.c b/src/udev/libudev.c
index 755d84d9bf..74b53cbf1b 100644
--- a/src/udev/libudev.c
+++ b/src/udev/libudev.c
@@ -261,12 +261,12 @@ _public_ struct udev *udev_new(void)
goto err;
/* /run/udev -- runtime rules */
- if (asprintf(&udev->rules_path[2], "%s/rules.d", udev->run_path) < 0)
+ if (asprintf(&udev->rules_path[1], "%s/rules.d", udev->run_path) < 0)
goto err;
/* /etc/udev -- local administration rules */
- udev->rules_path[1] = strdup(SYSCONFDIR "/udev/rules.d");
- if (!udev->rules_path[1])
+ udev->rules_path[2] = strdup(SYSCONFDIR "/udev/rules.d");
+ if (!udev->rules_path[2])
goto err;
udev->rules_path_count = 3;