udev: fix rules sort order

Commit 91418155ae moved around the code,
but did not chang ethe array index.
This commit is contained in:
Tom Gundersen 2012-04-07 13:41:13 +02:00 committed by Kay Sievers
parent baa30fbc2c
commit 58db57fedf
1 changed files with 3 additions and 3 deletions

View File

@ -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;