summaryrefslogtreecommitdiff
path: root/src/core/device.c
diff options
context:
space:
mode:
authorAbdo Roig-Maranges <abdo.roig@gmail.com>2016-01-17 21:28:06 +0100
committerAbdo Roig-Maranges <abdo.roig@gmail.com>2016-01-17 21:28:06 +0100
commit13616ae59e7867f5304273800d39f00198b6a40b (patch)
tree7b26cad3b3e60c493f2ff7fae170eb8ebdc1ab08 /src/core/device.c
parent3855df576fc7b7ff6dd20f51bd16acacb195ac5d (diff)
Fix broken SYSTEMD_USER_WANTS in udev rules.
The functionality of SYSTEMD_USER_WANTS that attaches dependencies to device units from udev rules was broken since commit b2c23da8. I guess it was due to a mass replace s/SYSTEMD_USER/MANAGER_USER/.
Diffstat (limited to 'src/core/device.c')
-rw-r--r--src/core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/device.c b/src/core/device.c
index bcd4d1146b..56ed947089 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -267,7 +267,7 @@ static int device_add_udev_wants(Unit *u, struct udev_device *dev) {
assert(u);
assert(dev);
- property = u->manager->running_as == MANAGER_USER ? "MANAGER_USER_WANTS" : "SYSTEMD_WANTS";
+ property = u->manager->running_as == MANAGER_USER ? "SYSTEMD_USER_WANTS" : "SYSTEMD_WANTS";
wants = udev_device_get_property_value(dev, property);
if (!wants)
return 0;